Class VeniceAclException

  • All Implemented Interfaces:
    java.io.Serializable

    public class VeniceAclException
    extends VeniceException
    A runtime exception which may be thrown by implementation of AuthorizerService interface.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      VeniceAclException​(java.lang.String message, int httpErrorCode)  
      VeniceAclException​(java.lang.String message, int httpErrorCode, java.lang.Throwable throwable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHttpStatusCode()
      If this exception is caught in handling an http request, what status code should be returned? Exceptions that extend VeniceException can override this for different behavior
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VeniceAclException

        public VeniceAclException​(java.lang.String message,
                                  int httpErrorCode)
      • VeniceAclException

        public VeniceAclException​(java.lang.String message,
                                  int httpErrorCode,
                                  java.lang.Throwable throwable)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getHttpStatusCode

        public int getHttpStatusCode()
        Description copied from class: VeniceException
        If this exception is caught in handling an http request, what status code should be returned? Exceptions that extend VeniceException can override this for different behavior
        Overrides:
        getHttpStatusCode in class VeniceException
        Returns:
        500 (Internal Server Error)