Class UnexpectedResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
no.digipost.signature.client.core.exceptions.SignatureException
no.digipost.signature.client.core.exceptions.UnexpectedResponseException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnexpectedResponseException
(Object errorEntity, Throwable cause, StatusCode actual, StatusCode... expected) UnexpectedResponseException
(Object errorEntity, StatusCode actual, StatusCode... expected) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
isErrorCode
(String errorCode) boolean
isHttpStatusCode
(int statusCode) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnexpectedResponseException
-
UnexpectedResponseException
-
UnexpectedResponseException
public UnexpectedResponseException(Object errorEntity, Throwable cause, StatusCode actual, StatusCode... expected)
-
-
Method Details
-
isHttpStatusCode
public boolean isHttpStatusCode(int statusCode) -
httpStatusCode
public int httpStatusCode() -
getErrorCode
-
getErrorMessage
-
getErrorType
-
isErrorCode
-