Class HandshakeException

    • Constructor Summary

      Constructors 
      Constructor Description
      HandshakeException​(int httpStatusCode, java.lang.String message)
      Constructor.
      HandshakeException​(java.lang.String message)
      Construct a HandshakeException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHttpStatusCode()
      Get the error code.
      • 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

      • HandshakeException

        public HandshakeException​(java.lang.String message)
        Construct a HandshakeException. HTTP status code will be set to 500.
        Parameters:
        message - error description
      • HandshakeException

        public HandshakeException​(int httpStatusCode,
                                  java.lang.String message)
        Constructor.
        Parameters:
        httpStatusCode - http status code to be set to response.
        message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • Method Detail

      • getHttpStatusCode

        public int getHttpStatusCode()
        Get the error code.
        Returns:
        the error code.