public class HandshakeException
extends java.lang.Exception
Exception
, which describes the error, occurred during the handshake phase.Constructor and Description |
---|
HandshakeException(int httpStatusCode,
java.lang.String message)
Constructor.
|
HandshakeException(java.lang.String message)
Construct a HandshakeException.
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatusCode()
Get the error code.
|
public HandshakeException(java.lang.String message)
500
.message
- error descriptionpublic HandshakeException(int httpStatusCode, java.lang.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–2020 Oracle Corporation. All rights reserved.