Package ai.vay.client.api.events
Enum ErrorEvent.ErrorType
- java.lang.Object
-
- java.lang.Enum<ErrorEvent.ErrorType>
-
- ai.vay.client.api.events.ErrorEvent.ErrorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ErrorEvent.ErrorType>
- Enclosing interface:
- ErrorEvent
public static enum ErrorEvent.ErrorType extends java.lang.Enum<ErrorEvent.ErrorType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_ERROR
INVALID_INPUT
OTHER
SECURITY_ERROR
SERVER_ERROR
TIMEOUT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorEvent.ErrorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ErrorEvent.ErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER_ERROR
public static final ErrorEvent.ErrorType SERVER_ERROR
-
INVALID_INPUT
public static final ErrorEvent.ErrorType INVALID_INPUT
-
CONNECTION_ERROR
public static final ErrorEvent.ErrorType CONNECTION_ERROR
-
TIMEOUT
public static final ErrorEvent.ErrorType TIMEOUT
-
SECURITY_ERROR
public static final ErrorEvent.ErrorType SECURITY_ERROR
-
OTHER
public static final ErrorEvent.ErrorType OTHER
-
-
Method Detail
-
values
public static ErrorEvent.ErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorEvent.ErrorType c : ErrorEvent.ErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorEvent.ErrorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-