Class PagerDutyRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
systems.comodal.pagerduty.exceptions.PagerDutyRequestException
- All Implemented Interfaces:
java.io.Serializable,PagerDutyClientException
public final class PagerDutyRequestException extends java.lang.RuntimeException implements PagerDutyClientException
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePagerDutyRequestException.Builder -
Method Summary
Modifier and Type Method Description static PagerDutyRequestException.Builderbuild(java.net.http.HttpResponse<?> response)booleancanBeRetried()longgetErrorCode()java.util.List<java.lang.String>getErrors()java.net.http.HttpResponse<?>getHttpResponse()java.lang.StringgetStatus()java.lang.StringtoString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
canBeRetried
public boolean canBeRetried()- Specified by:
canBeRetriedin interfacePagerDutyClientException
-
getErrors
public java.util.List<java.lang.String> getErrors()- Specified by:
getErrorsin interfacePagerDutyClientException
-
getHttpResponse
public java.net.http.HttpResponse<?> getHttpResponse()- Specified by:
getHttpResponsein interfacePagerDutyClientException
-
getErrorCode
public long getErrorCode()- Specified by:
getErrorCodein interfacePagerDutyClientException
-
getStatus
public java.lang.String getStatus() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Throwable
-
build
-