Class UnauthorizedException

All Implemented Interfaces:
Serializable

public class UnauthorizedException extends GravitinoRuntimeException
Exception thrown when a user is not authorized to perform an action.
See Also:
  • Constructor Details

    • UnauthorizedException

      @FormatMethod public UnauthorizedException(@FormatString String message, Object... args)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message.
      args - the arguments to the message.
    • UnauthorizedException

      @FormatMethod public UnauthorizedException(Throwable cause, @FormatString String message, Object... args)
      Constructs a new exception with the specified detail message and cause.
      Parameters:
      cause - the cause.
      message - the detail message.
      args - the arguments to the message.
    • UnauthorizedException

      public UnauthorizedException(String message, String challenge)
      Constructs a new exception with the specified detail message and challenge.
      Parameters:
      message - the detail message.
      challenge - the challenge.
  • Method Details

    • getChallenges

      public List<String> getChallenges()
      Get the challenge of the exception.
      Returns:
      the challenge.