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

public class UserNotAuthorizedException extends SubjectAreaCheckedException
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

    Constructors
    Constructor
    Description
    UserNotAuthorizedException(org.odpi.openmetadata.frameworks.auditlog.messagesets.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(org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String userId)
    This is the typical constructor used for creating an UserNotAuthorizedException
  • Method Summary

    Modifier and Type
    Method
    Description
     

    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.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UserNotAuthorizedException

      public UserNotAuthorizedException(org.odpi.openmetadata.frameworks.auditlog.messagesets.ExceptionMessageDefinition messageDefinition, String className, String actionDescription, String userId)
      This is the typical constructor used for creating an UserNotAuthorizedException
      Parameters:
      messageDefinition - content of the message
      className - name of class reporting error
      actionDescription - description of function it was performing when error detected
      userId - userId associated with this Exception
    • UserNotAuthorizedException

      public UserNotAuthorizedException(org.odpi.openmetadata.frameworks.auditlog.messagesets.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 message
      className - name of class reporting error
      actionDescription - description of function it was performing when error detected
      caughtError - previous error causing this exception
      userId - userId associated with this Exception
  • Method Details

    • getUserId

      public String getUserId()