Class DigipostClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- no.digipost.api.client.errorhandling.DigipostClientException
-
- All Implemented Interfaces:
Serializable
public class DigipostClientException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DigipostClientException(ErrorCode code, String message)DigipostClientException(ErrorCode code, String message, Throwable cause)DigipostClientException(ErrorCode code, Throwable cause)DigipostClientException(ErrorMessage error)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DigipostClientExceptionfrom(Throwable e)ErrorCodegetErrorCode()StringgetErrorMessage()ErrorTypegetErrorType()LinkgetLink(Relation relation)booleanisOneOf(Iterable<ErrorCode> codes)booleanisOneOf(ErrorCode... codes)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DigipostClientException
public DigipostClientException(ErrorMessage error)
-
-