Class PagerDutyParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
systems.comodal.pagerduty.exceptions.PagerDutyParseException
- All Implemented Interfaces:
java.io.Serializable,PagerDutyClientException
public final class PagerDutyParseException extends java.lang.RuntimeException implements PagerDutyClientException
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.String message)PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.String message, java.lang.String buffer)PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.String message, java.lang.Throwable cause)PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.Throwable cause)PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.Throwable cause, java.lang.String buffer) -
Method Summary
Modifier and Type Method Description booleancanBeRetried()java.lang.StringgetBuffer()longgetErrorCode()java.util.List<java.lang.String>getErrors()java.net.http.HttpResponse<?>getHttpResponse()static PagerDutyParseExceptionunhandledField(java.net.http.HttpResponse<?> httpResponse, java.lang.String context, java.lang.String field, java.lang.String buffer)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PagerDutyParseException
public PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.String message, java.lang.String buffer) -
PagerDutyParseException
public PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.String message, java.lang.Throwable cause) -
PagerDutyParseException
public PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.String message) -
PagerDutyParseException
public PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.Throwable cause) -
PagerDutyParseException
public PagerDutyParseException(java.net.http.HttpResponse<?> httpResponse, java.lang.Throwable cause, java.lang.String buffer)
-
-
Method Details
-
unhandledField
public static PagerDutyParseException unhandledField(java.net.http.HttpResponse<?> httpResponse, java.lang.String context, java.lang.String field, java.lang.String buffer) -
canBeRetried
public boolean canBeRetried()- Specified by:
canBeRetriedin interfacePagerDutyClientException
-
getHttpResponse
public java.net.http.HttpResponse<?> getHttpResponse()- Specified by:
getHttpResponsein interfacePagerDutyClientException
-
getErrorCode
public long getErrorCode()- Specified by:
getErrorCodein interfacePagerDutyClientException
-
getErrors
public java.util.List<java.lang.String> getErrors()- Specified by:
getErrorsin interfacePagerDutyClientException
-
getBuffer
public java.lang.String getBuffer()
-