public abstract class SubjectAreaOMASAPIResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
actionDescription |
protected String |
className |
protected String |
formattedMessage |
protected String |
messageId |
protected int |
relatedHTTPCode |
protected ResponseCategory |
responseCategory |
| Constructor and Description |
|---|
SubjectAreaOMASAPIResponse()
Default constructor
|
SubjectAreaOMASAPIResponse(SubjectAreaCheckedException e)
Constructor taking an Exception
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActionDescription()
Return the description of the action that was being issued when the exception occurred.
|
String |
getExceptionClassName()
Return the name of the Java class name to use to recreate the exception.
|
String |
getMessage()
These Exceptions are include in Exception rest responses.
|
String |
getMessageId()
Return the message id; the unique identifier of the message
|
int |
getRelatedHTTPCode()
Return the HTTP Code to use if forwarding response to HTTP client.
|
ResponseCategory |
getResponseCategory() |
void |
setActionDescription(String actionDescription)
Set up the description of the action that was being issued when the exception occurred.
|
void |
setExceptionClassName(String exceptionClassName)
Set up the name of the Java class name to use to recreate the exception.
|
void |
setMessageId(String messageId)
Set up the message id; the unique identifier of the message
|
void |
setResponseCategory(ResponseCategory responseCategory) |
String |
toString() |
protected int relatedHTTPCode
protected ResponseCategory responseCategory
protected String messageId
protected String className
protected String actionDescription
protected String formattedMessage
public SubjectAreaOMASAPIResponse()
public SubjectAreaOMASAPIResponse(SubjectAreaCheckedException e)
e - subject area exceptionpublic int getRelatedHTTPCode()
public ResponseCategory getResponseCategory()
public void setResponseCategory(ResponseCategory responseCategory)
public String getExceptionClassName()
public void setExceptionClassName(String exceptionClassName)
exceptionClassName - - String name of the fully-qualified java class namepublic String getActionDescription()
public void setActionDescription(String actionDescription)
actionDescription - String action descriptionpublic String getMessageId()
public String getMessage()
public void setMessageId(String messageId)
messageId - String messageIdCopyright © 2018–2020 ODPi. All rights reserved.