public class ProjectManagementRuntimeException extends RuntimeException
| Constructor and Description |
|---|
ProjectManagementRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Map<String,Object> relatedProperties)
This is the typical constructor used for creating an exception.
|
ProjectManagementRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Throwable caughtError,
Map<String,Object> relatedProperties)
This is the constructor used for creating an exception when an unexpected error has been
caught.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Return comparison result based on the content of the properties.
|
String |
getErrorMessage()
A formatted short description of the cause of the condition that resulted in this exception.
|
Map<String,Object> |
getRelatedProperties()
Return any additional properties that were added to the exception to aid diagnosis.
|
Throwable |
getReportedCaughtException()
An exception that was caught and wrapped by this exception.
|
int |
getReportedHTTPCode()
Return the HTTP response code to use with this exception.
|
String |
getReportedSystemAction()
A description of the action that the system took as a result of the error condition.
|
String |
getReportedUserAction()
A description of the action necessary to correct the error.
|
String |
getReportingActionDescription()
The type of request that the class was performing when the condition occurred that resulted in this
exception.
|
String |
getReportingClassName()
The class that created this exception.
|
int |
hashCode()
Return hash code for this object
|
String |
toString()
JSON-style toString
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ProjectManagementRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Map<String,Object> relatedProperties)
httpCode - http response code to use if this exception flows over a rest callclassName - name of class reporting erroractionDescription - description of function it was performing when error detectederrorMessage - description of errorsystemAction - actions of the system as a result of the erroruserAction - instructions for correcting the errorrelatedProperties - arbitrary properties that may help with diagnosing the problem.public ProjectManagementRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Throwable caughtError,
Map<String,Object> relatedProperties)
httpCode - http response code to use if this exception flows over a rest callclassName - name of class reporting erroractionDescription - description of function it was performing when error detectederrorMessage - description of errorsystemAction - actions of the system as a result of the erroruserAction - instructions for correcting the errorcaughtError - previous error causing this exceptionrelatedProperties - arbitrary properties that may help with diagnosing the problem.public int getReportedHTTPCode()
public String getReportingClassName()
public String getReportingActionDescription()
public String getErrorMessage()
public String getReportedSystemAction()
public String getReportedUserAction()
public Throwable getReportedCaughtException()
public Map<String,Object> getRelatedProperties()
public String toString()
public boolean equals(Object objectToCompare)
Copyright © 2017–2018 ODPi. All rights reserved.