public class CloseException extends RuntimeException
Used to wrap an underlying websocket CloseStatus so clients can retrieve the
status code and perform actions after it.
| Constructor and Description |
|---|
CloseException(CloseStatus closeStatus) |
CloseException(CloseStatus closeStatus,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
CloseStatus |
getCloseStatus() |
int |
getCode() |
String |
getMessage() |
String |
getReason() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CloseException(CloseStatus closeStatus)
public CloseException(CloseStatus closeStatus, @Nullable Throwable cause)
public CloseStatus getCloseStatus()
public int getCode()
public String getMessage()
getMessage in class Throwable