public class OCFRuntimeException extends RuntimeException
| Constructor and Description |
|---|
OCFRuntimeException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription)
This is the typical constructor used for creating an OCFRuntimeException.
|
OCFRuntimeException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription,
Map<String,Object> relatedProperties)
This is the typical constructor used for creating an OCFRuntimeException.
|
OCFRuntimeException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription,
Throwable caughtError)
This is the constructor used for creating an OCFRuntimeException when an unexpected error has been caught.
|
OCFRuntimeException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription,
Throwable caughtError,
Map<String,Object> relatedProperties)
This is the constructor used for creating an OCFRuntimeException when an unexpected error has been caught.
|
OCFRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction)
Deprecated.
|
OCFRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String errorMessageId,
String[] errorMessageParameters,
String systemAction,
String userAction,
String caughtErrorClassName,
Map<String,Object> relatedProperties)
This is the constructor used when receiving an exception from a remote server.
|
OCFRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Map<String,Object> relatedProperties)
Deprecated.
|
OCFRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Throwable caughtError)
Deprecated.
|
OCFRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Throwable caughtError,
Map<String,Object> relatedProperties)
Deprecated.
|
OCFRuntimeException(OCFRuntimeException template)
This is the copy/clone constructor used for creating an OCFRuntimeException.
|
OCFRuntimeException(String errorMessage,
OCFRuntimeException template)
This is the copy/clone constructor used for creating an OCFRuntimeException.
|
| 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 |
getErrorMessage()
Deprecated.
|
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.
|
String |
getReportedCaughtExceptionClassName()
An exception that was caught and wrapped by this exception.
|
String |
getReportedErrorMessage()
A formatted short description of the cause of the condition that resulted in this exception.
|
String |
getReportedErrorMessageId()
Return the formal message identifier for the error message.
|
String[] |
getReportedErrorMessageParameters()
Return the parameters that were inserted in the error message.
|
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()
Provide a common implementation of hashCode for all OCF Exception objects.
|
String |
toString()
Standard toString method.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic OCFRuntimeException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription)
messageDefinition - content of the messageclassName - name of class reporting erroractionDescription - description of function it was performing when error detectedpublic OCFRuntimeException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Map<String,Object> relatedProperties)
messageDefinition - content of the messageclassName - name of class reporting erroractionDescription - description of function it was performing when error detectedrelatedProperties - arbitrary properties that may help with diagnosing the problem.public OCFRuntimeException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Throwable caughtError)
messageDefinition - content of the messageclassName - name of class reporting erroractionDescription - description of function it was performing when error detectedcaughtError - previous error causing this exceptionpublic OCFRuntimeException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Throwable caughtError, Map<String,Object> relatedProperties)
messageDefinition - content of the messageclassName - name of class reporting erroractionDescription - description of function it was performing when error detectedcaughtError - previous error causing this exceptionrelatedProperties - arbitrary properties that may help with diagnosing the problem.public OCFRuntimeException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String errorMessageId,
String[] errorMessageParameters,
String systemAction,
String userAction,
String caughtErrorClassName,
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 errorerrorMessageId - unique identifier for the messageerrorMessageParameters - parameters that were inserted in the messagesystemAction - actions of the system as a result of the erroruserAction - instructions for correcting the errorcaughtErrorClassName - previous error causing this exceptionrelatedProperties - arbitrary properties that may help with diagnosing the problem.public OCFRuntimeException(String errorMessage, OCFRuntimeException template)
errorMessage - message for the exception - overrides the value from the
caught exceptiontemplate - object to copypublic OCFRuntimeException(OCFRuntimeException template)
template - object to copy@Deprecated public OCFRuntimeException(int httpCode, String className, String actionDescription, String errorMessage, String systemAction, String userAction)
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 error@Deprecated public OCFRuntimeException(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.@Deprecated public OCFRuntimeException(int httpCode, String className, String actionDescription, String errorMessage, String systemAction, String userAction, Throwable caughtError)
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 exception@Deprecated public OCFRuntimeException(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()
@Deprecated public String getErrorMessage()
public String getReportedErrorMessage()
public String getReportedErrorMessageId()
public String[] getReportedErrorMessageParameters()
public String getReportedSystemAction()
public String getReportedUserAction()
public Throwable getReportedCaughtException()
public String getReportedCaughtExceptionClassName()
public Map<String,Object> getRelatedProperties()
public boolean equals(Object objectToCompare)
public int hashCode()
Copyright © 2018–2020 ODPi. All rights reserved.