Package org.glassfish.tyrus.core
Class HandshakeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.glassfish.tyrus.core.HandshakeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AuthenticationException,RedirectException,RetryAfterException
public class HandshakeException extends java.lang.ExceptionException, which describes the error, occurred during the handshake phase.- Author:
- Alexey Stashok, Pavel Bucek
- See Also:
- Serialized Form
-
-
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 intgetHttpStatusCode()Get the error code.
-
-
-
Constructor Detail
-
HandshakeException
public HandshakeException(java.lang.String message)
Construct a HandshakeException. HTTP status code will be set to500.- 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 theThrowable.getMessage()method.
-
-