Class UserNotAuthorizedException
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.UserNotAuthorizedException
- All Implemented Interfaces:
Serializable
The UserNotAuthorizedException is thrown by the Subject Area OMAS when a userId passed on a request is not
authorized to perform the requested action.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserNotAuthorizedException
(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Exception caughtError, String userId) This is the constructor used for creating an UserNotAuthorizedException when an unexpected error has been caught.UserNotAuthorizedException
(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String userId) This is the typical constructor used for creating an UserNotAuthorizedException -
Method Summary
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, getRelatedProperties, 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
-
UserNotAuthorizedException
public UserNotAuthorizedException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String userId) This is the typical constructor used for creating an UserNotAuthorizedException- Parameters:
messageDefinition
- content of the messageclassName
- name of class reporting erroractionDescription
- description of function it was performing when error detecteduserId
- userId associated with this Exception
-
UserNotAuthorizedException
public UserNotAuthorizedException(ExceptionMessageDefinition messageDefinition, String className, String actionDescription, Exception caughtError, String userId) This is the constructor used for creating an UserNotAuthorizedException 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 exceptionuserId
- userId associated with this Exception
-
-
Method Details
-
getUserId
-