Class PermissionDeniedException

All Implemented Interfaces:
Serializable

public class PermissionDeniedException extends UserException
An authorization failure occurred. This error should be returned when the user cannot perform an operation. Generally, this is determined by using an Authorization service contained within a service. This error implies that if a user was granted authorization, the operation could succeed. Permission problems in the a system or database, for example, may imply a configuration or operational problem not resulting from a user authorization and should result in a different error condition.
See Also:
  • Constructor Details

    • PermissionDeniedException

      public PermissionDeniedException(String msg)
      Constructs a PermissionDeniedException with the specified detail message. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
    • PermissionDeniedException

      public PermissionDeniedException(String msg, Throwable t)
      Constructs a PermissionDeniedException with the specified detail message and cause. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
      t - the cause of the exception
    • PermissionDeniedException

      public PermissionDeniedException(Throwable t)
      Constructs a PermissionDeniedException with the specified cause and a detail message of cause.toString() which typically contains the class and detail message of cause.
      Parameters:
      t - the cause of the exception