Class 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:
    Serialized Form
    • Constructor Detail

      • 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 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​(ExceptionMessageDefinition messageDefinition,
                                          String className,
                                          String actionDescription,
                                          Throwable 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 Detail

      • getUserId

        public String getUserId()