public class GovernanceEngineCheckedExceptionBase extends Exception
Typically these errors are either configuration or operational errors that can be fixed by an administrator or using related OMAS APIs. The GovernanceEngineErrorCode can be used with this exception to populate it with standard messages. The aim is to be able to uniquely identify the cause and remedy for the error.
| Constructor and Description |
|---|
GovernanceEngineCheckedExceptionBase(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction)
This is the typical constructor used for creating a GovernanceEngineCheckedExceptionBase.
|
GovernanceEngineCheckedExceptionBase(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Throwable caughtError)
This is the constructor used for creating a GovernanceEngineCheckedExceptionBase that
resulted from a previous error.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage()
A formatted short description of the cause of the condition that resulted in 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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GovernanceEngineCheckedExceptionBase(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 errorpublic GovernanceEngineCheckedExceptionBase(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 - - the error that resulted in this exception.public int getReportedHTTPCode()
public String getReportingClassName()
public String getReportingActionDescription()
public String getErrorMessage()
public String getReportedSystemAction()
public String getReportedUserAction()
Copyright © 2018–2020 ODPi. All rights reserved.