public class ObjectNotFoundException extends ApiException
ApiException
,
Serialized FormConstructor and Description |
---|
ObjectNotFoundException()
Constructs an
ObjectNotFoundException with no detail message. |
ObjectNotFoundException(java.util.Map<? extends java.lang.String,? extends java.lang.Object> errorData)
Constructs an
ObjectNotFoundException with the specified status
and error data. |
ObjectNotFoundException(java.lang.String s)
Constructs an
ObjectNotFoundException with the specified detail message. |
ObjectNotFoundException(java.lang.String s,
java.lang.Throwable cause)
Constructs an
ObjectNotFoundException with the specified detail message
and cause. |
ObjectNotFoundException(java.lang.Throwable cause)
Constructs an
ObjectNotFoundException with the specified cause. |
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
Returns the HTTP status code for this exception.
|
describe, getErrorCode, getErrors, getMessage
public ObjectNotFoundException()
ObjectNotFoundException
with no detail message.public ObjectNotFoundException(java.lang.String s)
ObjectNotFoundException
with the specified detail message.s
- the detail message.public ObjectNotFoundException(java.lang.String s, java.lang.Throwable cause)
ObjectNotFoundException
with the specified detail message
and cause.s
- the detail message.cause
- the detail message.public ObjectNotFoundException(java.lang.Throwable cause)
ObjectNotFoundException
with the specified cause.cause
- the detail message.public ObjectNotFoundException(java.util.Map<? extends java.lang.String,? extends java.lang.Object> errorData)
ObjectNotFoundException
with the specified status
and error data.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
public int getStatus()
ApiException
getStatus
in class ApiException