public abstract class OMRSAPIResponse extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
actionDescription |
protected String |
exceptionCausedBy |
protected String |
exceptionClassName |
protected String |
exceptionErrorMessage |
protected String |
exceptionErrorMessageId |
protected String[] |
exceptionErrorMessageParameters |
protected Map<String,Object> |
exceptionProperties |
protected String |
exceptionSystemAction |
protected String |
exceptionUserAction |
protected int |
relatedHTTPCode |
| Constructor and Description |
|---|
OMRSAPIResponse()
Default constructor
|
OMRSAPIResponse(OMRSAPIResponse template)
Copy/clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getActionDescription()
Return the description of the activity in progress when the exception occurred.
|
String |
getExceptionCausedBy()
Return the name of any nested exception that may indicate the root cause of the exception.
|
String |
getExceptionClassName()
Return the name of the Java class name to use to recreate the exception.
|
String |
getExceptionErrorMessage()
Return the error message associated with the exception.
|
String |
getExceptionErrorMessageId()
Return the formal message identifier for the error message.
|
String[] |
getExceptionErrorMessageParameters()
Return the parameters that were inserted in the error message.
|
Map<String,Object> |
getExceptionProperties()
Return the additional properties stored by the exceptions.
|
String |
getExceptionSystemAction()
Return the description of the action taken by the system as a result of the exception.
|
String |
getExceptionUserAction()
Return the action that a user should take to resolve the problem.
|
int |
getRelatedHTTPCode()
Return the HTTP Code to use if forwarding response to HTTP client.
|
int |
hashCode()
Create a hash code for this element type.
|
void |
setActionDescription(String actionDescription)
Set up the description of the activity in progress when the exception occurred.
|
void |
setExceptionCausedBy(String exceptionCausedBy)
Set up the name of any nested exception that may indicate the root cause of the exception.
|
void |
setExceptionClassName(String exceptionClassName)
Set up the name of the Java class name to use to recreate the exception.
|
void |
setExceptionErrorMessage(String exceptionErrorMessage)
Set up the error message associated with the exception.
|
void |
setExceptionErrorMessageId(String exceptionErrorMessageId)
Set up the formal message identifier for the error message.
|
void |
setExceptionErrorMessageParameters(String[] exceptionErrorMessageParameters)
Set up the list of parameters inserted in to the error message.
|
void |
setExceptionProperties(Map<String,Object> exceptionProperties)
Set up the additional properties stored by the exceptions.
|
void |
setExceptionSystemAction(String exceptionSystemAction)
Set up the description of the action taken by the system as a result of the exception.
|
void |
setExceptionUserAction(String exceptionUserAction)
Set up the action that a user should take to resolve the problem.
|
void |
setRelatedHTTPCode(int relatedHTTPCode)
Set up the HTTP Code to use if forwarding response to HTTP client.
|
String |
toString()
Standard toString method.
|
protected int relatedHTTPCode
protected String actionDescription
protected String exceptionClassName
protected String exceptionCausedBy
protected String exceptionErrorMessage
protected String exceptionErrorMessageId
protected String[] exceptionErrorMessageParameters
protected String exceptionSystemAction
protected String exceptionUserAction
public OMRSAPIResponse()
public OMRSAPIResponse(OMRSAPIResponse template)
template - object to copypublic String getExceptionClassName()
public void setExceptionClassName(String exceptionClassName)
exceptionClassName - - String name of the fully-qualified java class namepublic String getExceptionCausedBy()
public void setExceptionCausedBy(String exceptionCausedBy)
exceptionCausedBy - exception class namepublic String getActionDescription()
public void setActionDescription(String actionDescription)
actionDescription - string descriptionpublic int getRelatedHTTPCode()
public void setRelatedHTTPCode(int relatedHTTPCode)
relatedHTTPCode - - integer HTTP status codepublic String getExceptionErrorMessage()
public void setExceptionErrorMessage(String exceptionErrorMessage)
exceptionErrorMessage - - string error messagepublic String getExceptionErrorMessageId()
public void setExceptionErrorMessageId(String exceptionErrorMessageId)
exceptionErrorMessageId - string identifierpublic String[] getExceptionErrorMessageParameters()
public void setExceptionErrorMessageParameters(String[] exceptionErrorMessageParameters)
exceptionErrorMessageParameters - list of stringspublic String getExceptionSystemAction()
public void setExceptionSystemAction(String exceptionSystemAction)
exceptionSystemAction - - string description of the action takenpublic String getExceptionUserAction()
public void setExceptionUserAction(String exceptionUserAction)
exceptionUserAction - - string instructionspublic Map<String,Object> getExceptionProperties()
public void setExceptionProperties(Map<String,Object> exceptionProperties)
exceptionProperties - property mappublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2020 ODPi. All rights reserved.