Package net.visma.autopay.http.digest
Class DigestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.visma.autopay.http.digest.DigestException
- All Implemented Interfaces:
Serializable
Thrown in case of problems when computing or verifying digest, or when verified digest is incorrect
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Error codes to classify Digest Exceptions -
Constructor Summary
ConstructorsConstructorDescriptionDigestException
(DigestException.ErrorCode errorCode, String message) Constructs new exception with provided error code and messageDigestException
(DigestException.ErrorCode errorCode, String message, Throwable cause) Constructs new exception with provided error code, message and cause -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DigestException
Constructs new exception with provided error code and message- Parameters:
errorCode
- Error codemessage
- Detail message
-
DigestException
Constructs new exception with provided error code, message and cause- Parameters:
errorCode
- Error codemessage
- Detail messagecause
- Exception causing the constructed one
-
-
Method Details
-
getErrorCode
Returns error code- Returns:
- Error code of this exception
-