public enum WebSocketError extends Enum<WebSocketError>
Enum has error code and description of the error.
| Enum Constant and Description |
|---|
AuthenticationError |
FailedToCreateProducer |
FailedToDeserializeFromJSON |
FailedToSerializeToJSON |
FailedToSubscribe |
NotAuthorizedError |
PayloadEncodingError |
UnknownError |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getDescription() |
String |
toString() |
static WebSocketError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketError FailedToCreateProducer
public static final WebSocketError FailedToSubscribe
public static final WebSocketError FailedToDeserializeFromJSON
public static final WebSocketError FailedToSerializeToJSON
public static final WebSocketError AuthenticationError
public static final WebSocketError NotAuthorizedError
public static final WebSocketError PayloadEncodingError
public static final WebSocketError UnknownError
public static WebSocketError[] values()
for (WebSocketError c : WebSocketError.values()) System.out.println(c);
public static WebSocketError 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 String getDescription()
public int getCode()
public String toString()
toString in class Enum<WebSocketError>Copyright © 2017–2022 Apache Software Foundation. All rights reserved.