public class WebSocketException extends Exception
| Constructor and Description |
|---|
WebSocketException(ErrorCode code)
Instantiates a new web socket exception.
|
WebSocketException(ErrorCode code,
String... formatArgs)
Instantiates a new web socket exception.
|
WebSocketException(ErrorCode code,
Throwable cause)
Instantiates a new web socket exception.
|
WebSocketException(ErrorCode code,
Throwable cause,
String... formatArgs)
Instantiates a new web socket exception.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Gets the status code.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WebSocketException(ErrorCode code)
code - the error codepublic WebSocketException(ErrorCode code, String... formatArgs)
code - the error codeformatArgs - the format args for formatted error messagepublic WebSocketException(ErrorCode code, Throwable cause)
code - the error codecause - the causepublic String getMessage()
getMessage in class Throwablepublic int getErrorCode()
Copyright © 2021. All rights reserved.