public enum WebSocketExceptionType extends Enum<WebSocketExceptionType>
| Enum Constant and Description |
|---|
PROTOCOL_NOT_SUPPORTED |
UNABLE_TO_CONNECT |
UNABLE_TO_CONNECT_SSL |
UNDEFINED |
UNKNOWN_HOST |
| Modifier and Type | Method and Description |
|---|---|
int |
getExceptionType() |
static WebSocketExceptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketExceptionType UNDEFINED
public static final WebSocketExceptionType UNKNOWN_HOST
public static final WebSocketExceptionType UNABLE_TO_CONNECT
public static final WebSocketExceptionType UNABLE_TO_CONNECT_SSL
public static final WebSocketExceptionType PROTOCOL_NOT_SUPPORTED
public static WebSocketExceptionType[] values()
for (WebSocketExceptionType c : WebSocketExceptionType.values()) System.out.println(c);
public static WebSocketExceptionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getExceptionType()
Copyright © 2013. All Rights Reserved.