public class HandshakeException extends Exception
Exception
, which describes the error, occurred during the handshake phase.Constructor and Description |
---|
HandshakeException(int httpStatusCode,
String message)
Constructor.
|
HandshakeException(String message)
Construct a HandshakeException.
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatusCode()
Get the error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HandshakeException(String message)
500
.message
- error descriptionpublic HandshakeException(int httpStatusCode, String message)
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.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.