|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.linkedin.data.template.RecordTemplate
com.linkedin.restli.common.ErrorResponse
public class ErrorResponse
A generic ErrorResponse
| Constructor Summary | |
|---|---|
ErrorResponse()
Initialize an empty ErrorResponse. |
|
ErrorResponse(com.linkedin.data.DataMap data)
Initialize an ErrorResponse based on the given DataMap. |
|
| Method Summary | |
|---|---|
com.linkedin.data.DataMap |
getErrorDetails()
|
java.lang.String |
getExceptionClass()
Get the exception class of the ErrorResponse. |
java.lang.String |
getExceptionClass(com.linkedin.data.template.GetMode mode)
Returns the exception class of the ErrorResponse. |
java.lang.String |
getMessage()
Get the message of the ErrorResponse. |
java.lang.String |
getMessage(com.linkedin.data.template.GetMode mode)
Returns the message of the ErrorResponse. |
int |
getServiceErrorCode()
Get the service error code of the ErrorResponse. |
java.lang.Integer |
getServiceErrorCode(com.linkedin.data.template.GetMode mode)
Returns the service error code of the ErrorResponse. |
java.lang.String |
getStackTrace()
Get the stack trace of the ErrorResponse. |
java.lang.String |
getStackTrace(com.linkedin.data.template.GetMode mode)
Returns the stack trace of the ErrorResponse. |
int |
getStatus()
Get the status of the ErrorResponse. |
java.lang.Integer |
getStatus(com.linkedin.data.template.GetMode mode)
Returns the status of the ErrorResponse. |
boolean |
hasErrorDetails()
|
boolean |
hasExceptionClass()
|
boolean |
hasMessage()
|
boolean |
hasServiceErrorCode()
|
boolean |
hasStackTrace()
|
boolean |
hasStatus()
|
void |
removeErrorDetails()
Remove the error details from this ErrorResponse. |
void |
removeExceptionClass()
Remove the exception class from this ErrorResponse. |
void |
removeMessage()
Remove the message from this ErrorResponse. |
void |
removeServiceErrorCode()
Remove the service error code from this ErrorResponse. |
void |
removeStackTrace()
Remove the stack trace from this ErrorResponse. |
void |
removeStatus()
Remove the status value from this ErrorResponse. |
void |
setErrorDetails(com.linkedin.data.DataMap value)
Set the error details. |
void |
setExceptionClass(java.lang.String value)
Set the exception class. |
void |
setMessage(java.lang.String value)
Set the message. |
void |
setServiceErrorCode(int value)
Set the service error code. |
void |
setStackTrace(java.lang.String value)
Set the stack trace. |
void |
setStatus(int value)
Set the status. |
| Methods inherited from class com.linkedin.data.template.RecordTemplate |
|---|
clone, contains, copy, data, equals, hashCode, obtainDirect, obtainWrapped, putDirect, putDirect, putDirect, putWrapped, putWrapped, remove, schema, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorResponse()
public ErrorResponse(com.linkedin.data.DataMap data)
data - a DataMap| Method Detail |
|---|
public boolean hasStatus()
public void removeStatus()
public java.lang.Integer getStatus(com.linkedin.data.template.GetMode mode)
mode.
mode - determines behavior if the attribute is not present
GetModepublic int getStatus()
GetMode.STRICT.
public void setStatus(int value)
value - statuspublic boolean hasServiceErrorCode()
public void removeServiceErrorCode()
public java.lang.Integer getServiceErrorCode(com.linkedin.data.template.GetMode mode)
mode.
mode - determines behavior if the attribute is not present
GetModepublic int getServiceErrorCode()
GetMode.STRICT.
public void setServiceErrorCode(int value)
value - service error codepublic boolean hasMessage()
public void removeMessage()
public java.lang.String getMessage(com.linkedin.data.template.GetMode mode)
mode.
mode - determines behavior if the attribute is not present
GetModepublic java.lang.String getMessage()
GetMode.STRICT.
public void setMessage(java.lang.String value)
value - messagepublic boolean hasExceptionClass()
public void removeExceptionClass()
public java.lang.String getExceptionClass(com.linkedin.data.template.GetMode mode)
mode.
mode - determines behavior if the attribute is not present
GetModepublic java.lang.String getExceptionClass()
GetMode.STRICT.
public void setExceptionClass(java.lang.String value)
value - exception classpublic boolean hasStackTrace()
public void removeStackTrace()
public java.lang.String getStackTrace(com.linkedin.data.template.GetMode mode)
mode.
mode - determines behavior if the attribute is not present
GetModepublic java.lang.String getStackTrace()
GetMode.STRICT.
public void setStackTrace(java.lang.String value)
value - stack tracepublic boolean hasErrorDetails()
public void removeErrorDetails()
public com.linkedin.data.DataMap getErrorDetails()
public void setErrorDetails(com.linkedin.data.DataMap value)
value - error details
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||