Class VeniceHttpException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OperationNotAllowedException

public class VeniceHttpException extends VeniceException
See Also:
  • Constructor Details

    • VeniceHttpException

      public VeniceHttpException(int statusCode)
    • VeniceHttpException

      public VeniceHttpException(int statusCode, String message)
    • VeniceHttpException

      public VeniceHttpException(int statusCode, String message, ErrorType type)
    • VeniceHttpException

      public VeniceHttpException(int statusCode, Throwable cause)
    • VeniceHttpException

      public VeniceHttpException(int statusCode, Throwable cause, ErrorType type)
    • VeniceHttpException

      public VeniceHttpException(int statusCode, String message, Throwable cause, ErrorType type)
    • VeniceHttpException

      public VeniceHttpException(int statusCode, String message, Throwable cause)
  • Method Details

    • 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)
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable