Class StructuredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.visma.autopay.http.structured.StructuredException
- All Implemented Interfaces:
Serializable
Thrown in case of problems when parsing
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Error codes to classify Structured Exceptions -
Constructor Summary
ConstructorsConstructorDescriptionStructuredException
(StructuredException.ErrorCode errorCode, String message) Constructs new exception with provided error code and message -
Method Summary
Modifier and TypeMethodDescriptionReturns error codeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StructuredException
Constructs new exception with provided error code and message- Parameters:
errorCode
- Error codemessage
- Detail message
-
-
Method Details
-
getErrorCode
Returns error code- Returns:
- Error code of this exception
-