Package com.emc.documentum.rest.model
Class RestError
java.lang.Object
com.emc.documentum.rest.model.RestError
Model for Rest Error info, which is the error info shown to users
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add error detailvoid
Clear error detailsgetCode()
Get error codeGet error detailsgetId()
Get error message log idGet error messageint
Get error statusvoid
Set error codevoid
Set error message log idvoid
setMessage
(String message) Set error messagevoid
setStatus
(int status) Set error status
-
Constructor Details
-
RestError
public RestError()construct a RestError object
-
-
Method Details
-
getStatus
public int getStatus()Get error status- Returns:
- error status
-
setStatus
public void setStatus(int status) Set error status- Parameters:
status
- error status
-
getCode
Get error code- Returns:
- error code
-
setCode
Set error code- Parameters:
code
- error code
-
getMessage
Get error message- Returns:
- error message
-
setMessage
Set error message- Parameters:
message
- error message
-
getDetails
Get error details- Returns:
- error details
-
clearDetails
public void clearDetails()Clear error details -
setId
Set error message log id- Parameters:
id
- set the unique log id
-
getId
Get error message log id- Returns:
- the log id
-
addDetail
Add error detail- Parameters:
detail
- error detail
-