Class VeniceNoClusterException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClusterName()  
      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
    • Constructor Detail

      • VeniceNoClusterException

        public VeniceNoClusterException​(java.lang.String clusterName)
      • VeniceNoClusterException

        public VeniceNoClusterException​(java.lang.String clusterName,
                                        java.lang.Throwable t)
    • Method Detail

      • getClusterName

        public java.lang.String getClusterName()
      • 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)