public class HandshakeException extends RuntimeException
RuntimeException
, which describes the error, occurred during the handshake phase.Constructor and Description |
---|
HandshakeException(int httpStatusCode,
String message)
Construct a HandshakeException.
|
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
- error descriptionCopyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.