public class SystemException extends ApiException
Constructor and Description |
---|
SystemException()
Constructs a
SystemException with no detail message. |
SystemException(int status,
java.util.Map<? extends java.lang.String,? extends java.lang.Object> errorData)
Constructs a
SystemException with the specified status
and error data. |
SystemException(java.lang.String s)
Constructs a
SystemException with the specified detail message. |
SystemException(java.lang.String s,
java.lang.Throwable cause)
Constructs a
SystemException with the specified detail message
and cause. |
SystemException(java.lang.Throwable cause)
Constructs a
SystemException with the specified cause. |
describe, getErrorCode, getErrorData, getMessage, getReference, getStatus
public SystemException()
SystemException
with no detail message.public SystemException(java.lang.String s)
SystemException
with the specified detail message.s
- the detail message.public SystemException(java.lang.String s, java.lang.Throwable cause)
SystemException
with the specified detail message
and cause.s
- the detail message.cause
- the detail message.public SystemException(java.lang.Throwable cause)
SystemException
with the specified cause.cause
- the detail message.public SystemException(int status, java.util.Map<? extends java.lang.String,? extends java.lang.Object> errorData)
SystemException
with the specified status
and error data.status
- the HTTP status code.errorData
- a map representing the error details returned by the API. The map is
expected to contain String
value for the key "reference"
and
a map containing the detailed error data for the key "key"
. This map in turn
is expected to contain String
values for the keys
"code"
and "message"
.ApiException