Class InvalidParameterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
org.odpi.openmetadata.commonservices.ffdc.exceptions.OMAGCheckedExceptionBase
org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.SubjectAreaCheckedException
org.odpi.openmetadata.accessservices.subjectarea.ffdc.exceptions.InvalidParameterException
- All Implemented Interfaces:
Serializable
The InvalidParameterException is thrown by the Subject Area OMAS when a parameter is null or an invalid
value.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidParameterException
(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Exception caughtError, String invalidPropertyName, String invalidPropertyValue) This is the constructor used for creating an InvalidParameterException when an unexpected error has been caught.InvalidParameterException
(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String invalidPropertyName, String invalidPropertyValue) This is the typical constructor used for creating an InvalidParameterException -
Method Summary
Modifier and TypeMethodDescriptioninvalid property nameinvalid property valueReturn any additional properties that were added to the exception to aid diagnosis.void
setRelatedProperties
(Map<String, Object> relatedProperties) Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.exceptions.OMAGCheckedExceptionBase
toString
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase
equals, getErrorMessage, getReportedCaughtException, getReportedCaughtExceptionClassName, getReportedErrorMessage, getReportedErrorMessageId, getReportedErrorMessageParameters, getReportedHTTPCode, getReportedSystemAction, getReportedUserAction, getReportingActionDescription, getReportingClassName, hashCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
InvalidParameterException
public InvalidParameterException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String invalidPropertyName, String invalidPropertyValue) This is the typical constructor used for creating an InvalidParameterException- Parameters:
messageDefinition
- content of the messageclassName
- name of class reporting erroractionDescription
- description of function it was performing when error detectedinvalidPropertyName
- invalidPropertyName if there is oneinvalidPropertyValue
- invalidPropertyValue if there is one
-
InvalidParameterException
public InvalidParameterException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Exception caughtError, String invalidPropertyName, String invalidPropertyValue) This is the constructor used for creating an InvalidParameterException when an unexpected error has been caught. The properties allow additional information to be associated with the exception.- Parameters:
messageDefinition
- content of the messageclassName
- name of class reporting erroractionDescription
- description of function it was performing when error detectedcaughtError
- previous error causing this exceptioninvalidPropertyName
- invalidPropertyName if there is oneinvalidPropertyValue
- invalidPropertyValue if there is one
-
-
Method Details
-
getInvalidPropertyName
invalid property name- Returns:
- invalid property name
-
getInvalidPropertyValue
invalid property value- Returns:
- in valid property value
-
getRelatedProperties
Description copied from class:OCFCheckedExceptionBase
Return any additional properties that were added to the exception to aid diagnosis.- Overrides:
getRelatedProperties
in classOCFCheckedExceptionBase
- Returns:
- property map
-
setRelatedProperties
-