Package wt.access

Class NotAuthorizedException

All Implemented Interfaces:
Serializable, LocalizableMessage, Message

public class NotAuthorizedException extends AccessControlException implements Serializable
Thrown in situations where a user lacks sufficient access rights to carry out an action on a specific object or some other type of authorization error occurs.

Whenever the exception results in a failure of the user action, an AccessControlEvent.NOT_AUTHORIZED audit event must also be emitted.

Supported API: true

Extendable: false

See Also:
  • Constructor Details

    • NotAuthorizedException

      public NotAuthorizedException()
      No argument constructor.

      Supported API: true
    • NotAuthorizedException

      public NotAuthorizedException(String msg)
      Constructor that takes a non-localized message as an argument.

      Supported API: true
      Parameters:
      msg - non-localized message
    • NotAuthorizedException

      public NotAuthorizedException(Exception e)
      Constructor that takes an exception as an argument. The exception can be retrieved using the getNestedException method.

      Supported API: true
      Parameters:
      e - exception
    • NotAuthorizedException

      public NotAuthorizedException(Exception e, String msg)
      Constructor that takes a non-localized message and an exception as arguments.

      Supported API: true
      Parameters:
      e - exception
      msg - non-localized message
    • NotAuthorizedException

      public NotAuthorizedException(Exception e, String rb, String key, Object[] params)
      Constructor that takes an exception, a resource bundle, a key and additional parameters to use in the localized message as arguments.

      Supported API: true
      Parameters:
      e - exception
      rb - resource bundle name
      key - resource bundle key
      params - parameters to use in the localized message