Package org.glassfish.tyrus.core
Class HandshakeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.glassfish.tyrus.core.HandshakeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationException
,RedirectException
,RetryAfterException
Exception
, which describes the error, occurred during the handshake phase.- Author:
- Alexey Stashok, Pavel Bucek
- See Also:
-
Constructor Summary
ConstructorDescriptionHandshakeException
(int httpStatusCode, String message) Constructor.HandshakeException
(String message) Construct a HandshakeException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HandshakeException
Construct a HandshakeException. HTTP status code will be set to500
.- Parameters:
message
- error description
-
HandshakeException
Constructor.- Parameters:
httpStatusCode
- http status code to be set to response.message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
-
Method Details
-
getHttpStatusCode
public int getHttpStatusCode()Get the error code.- Returns:
- the error code.
-