public class WebSocketException extends Exception
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getErrorCode()
Gets the status code.
|
String |
getMessage() |
public 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 在类中 Throwablepublic int getErrorCode()
Copyright © 2020. All rights reserved.