Class UnauthorizedException

All Implemented Interfaces:
Serializable

@ResponseStatus(UNAUTHORIZED) public class UnauthorizedException extends AbstractLocalifyException
Exception thrown when a user is not authorized to access a resource.
See Also:
  • Constructor Details

    • UnauthorizedException

      public UnauthorizedException()
      Constructs a new UnauthorizedException with a default message.
    • UnauthorizedException

      public UnauthorizedException(String message)
      Constructs a new UnauthorizedException with the specified message.
      Parameters:
      message - The detail message.
    • UnauthorizedException

      public UnauthorizedException(Throwable cause)
      Constructs a new UnauthorizedException with the specified cause.
      Parameters:
      cause - The cause.
    • UnauthorizedException

      public UnauthorizedException(String str, Throwable cause)
      Constructs a new UnauthorizedException with the specified message and cause.
      Parameters:
      str - The detail message.
      cause - The cause.