Class DigipostClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- no.digipost.api.client.errorhandling.DigipostClientException
-
- All Implemented Interfaces:
java.io.Serializable
public class DigipostClientException extends java.lang.RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DigipostClientException(ErrorCode code, java.lang.String message)
DigipostClientException(ErrorCode code, java.lang.String message, java.lang.Throwable cause)
DigipostClientException(ErrorCode code, java.lang.Throwable cause)
DigipostClientException(ErrorMessage error)
-
Method Summary
Modifier and Type Method Description static DigipostClientException
from(java.lang.Throwable e)
ErrorCode
getErrorCode()
java.lang.String
getErrorMessage()
ErrorType
getErrorType()
Link
getLink(Relation relation)
boolean
isOneOf(java.lang.Iterable<ErrorCode> codes)
boolean
isOneOf(ErrorCode... codes)
-
-
-
Constructor Detail
-
DigipostClientException
public DigipostClientException(ErrorMessage error)
-
DigipostClientException
public DigipostClientException(ErrorCode code, java.lang.Throwable cause)
-
DigipostClientException
public DigipostClientException(ErrorCode code, java.lang.String message)
-
DigipostClientException
public DigipostClientException(ErrorCode code, java.lang.String message, java.lang.Throwable cause)
-
-
Method Detail
-
from
public static DigipostClientException from(java.lang.Throwable e)
-
isOneOf
public boolean isOneOf(ErrorCode... codes)
-
isOneOf
public boolean isOneOf(java.lang.Iterable<ErrorCode> codes)
-
getErrorCode
public ErrorCode getErrorCode()
-
getErrorMessage
public java.lang.String getErrorMessage()
-
getErrorType
public ErrorType getErrorType()
-
-