Class VeniceException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ErrorType getErrorType()
      Returns the errorType.
      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
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
    • Field Detail

    • Constructor Detail

      • VeniceException

        public VeniceException()
      • VeniceException

        public VeniceException​(java.lang.String s)
      • VeniceException

        public VeniceException​(java.lang.String s,
                               boolean fillInStacktrace)
      • VeniceException

        public VeniceException​(java.lang.String s,
                               ErrorType errorType)
      • VeniceException

        public VeniceException​(java.lang.Throwable t)
      • VeniceException

        public VeniceException​(java.lang.String s,
                               java.lang.Throwable t)
      • VeniceException

        public VeniceException​(java.lang.String s,
                               java.lang.Throwable t,
                               ErrorType errorType)
    • Method Detail

      • getHttpStatusCode

        public 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
        Returns:
        500 (Internal Server Error)
      • getErrorType

        public final ErrorType getErrorType()
        Returns the errorType. Extenders of this class should fill in the errorType member
        Returns: