public class InvalidParameterException extends OMRSCheckedExceptionBase
| Constructor and Description |
|---|
InvalidParameterException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription,
String parameterName)
This is the typical constructor used for creating an InvalidParameterException.
|
InvalidParameterException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription,
String parameterName,
Map<String,Object> relatedProperties)
This is the typical constructor used for creating an InvalidParameterException.
|
InvalidParameterException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription,
Throwable caughtError,
String parameterName)
This is the constructor used for creating an InvalidParameterException when an unexpected error has been caught.
|
InvalidParameterException(ExceptionMessageDefinition messageDefinition,
String className,
String actionDescription,
Throwable caughtError,
String parameterName,
Map<String,Object> relatedProperties)
This is the constructor used for creating an InvalidParameterException when an unexpected error has been caught.
|
InvalidParameterException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction)
Deprecated.
|
InvalidParameterException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String errorMessageId,
String[] errorMessageParameters,
String systemAction,
String userAction,
String caughtErrorClassName,
String parameterName,
Map<String,Object> relatedProperties)
This is the constructor used when receiving an exception from a remote server.
|
InvalidParameterException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
String parameterName)
Deprecated.
|
InvalidParameterException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
String parameterName,
Throwable caughtError)
Deprecated.
|
InvalidParameterException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String systemAction,
String userAction,
Throwable caughtError)
Deprecated.
|
InvalidParameterException(OCFCheckedExceptionBase caughtError,
String parameterName)
This is a copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getParameterName()
Return the invalid parameter's name, if known.
|
String |
toString()
JSON-style toString
|
equals, getErrorMessage, getRelatedProperties, getReportedCaughtException, getReportedCaughtExceptionClassName, getReportedErrorMessage, getReportedErrorMessageId, getReportedErrorMessageParameters, getReportedHTTPCode, getReportedSystemAction, getReportedUserAction, getReportingActionDescription, getReportingClassName, hashCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic InvalidParameterException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String parameterName)
messageDefinition - content of the messageclassName - name of class reporting erroractionDescription - description of function it was performing when error detectedparameterName - name of the invalid parameter if knownpublic InvalidParameterException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String parameterName, Map<String,Object> relatedProperties)
messageDefinition - content of the messageclassName - name of class reporting erroractionDescription - description of function it was performing when error detectedparameterName - name of the invalid parameter if knownrelatedProperties - arbitrary properties that may help with diagnosing the problem.public InvalidParameterException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Throwable caughtError, String parameterName)
messageDefinition - content of the messageclassName - name of class reporting erroractionDescription - description of function it was performing when error detectedcaughtError - previous error causing this exceptionparameterName - name of the invalid parameter if knownpublic InvalidParameterException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Throwable caughtError, String parameterName, 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 exceptionparameterName - name of the invalid parameter if knownrelatedProperties - arbitrary properties that may help with diagnosing the problem.public InvalidParameterException(int httpCode,
String className,
String actionDescription,
String errorMessage,
String errorMessageId,
String[] errorMessageParameters,
String systemAction,
String userAction,
String caughtErrorClassName,
String parameterName,
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 exceptionparameterName - name of the invalid parameter if knownrelatedProperties - arbitrary properties that may help with diagnosing the problem.public InvalidParameterException(OCFCheckedExceptionBase caughtError, String parameterName)
caughtError - the error that resulted in this exception.parameterName - new parameter name@Deprecated public InvalidParameterException(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 InvalidParameterException(int httpCode, String className, String actionDescription, String errorMessage, String systemAction, String userAction, String parameterName)
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 errorparameterName - name of the invalid parameter if known@Deprecated public InvalidParameterException(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.@Deprecated public InvalidParameterException(int httpCode, String className, String actionDescription, String errorMessage, String systemAction, String userAction, String parameterName, 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 errorparameterName - name of the invalid parameter if knowncaughtError - the error that resulted in this exception.public String getParameterName()
public String toString()
toString in class OCFCheckedExceptionBaseCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.