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 DigipostClientException
from(Throwable e)
ErrorCode
getErrorCode()
String
getErrorMessage()
ErrorType
getErrorType()
Link
getLink(Relation relation)
boolean
isOneOf(Iterable<ErrorCode> codes)
boolean
isOneOf(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)
-
-