public static enum BasicClient.ExceptionType extends java.lang.Enum<BasicClient.ExceptionType> implements REpiceaTranslator.TextableEnum
Enum Constant and Description |
---|
ConnectionFailed |
ConnectionRejected |
ConnectionTooLong |
UnknownErrorWhileConnected |
Modifier and Type | Method and Description |
---|---|
void |
setText(java.lang.String englishText,
java.lang.String frenchText)
This method sets the english and french text for the label, control or title.
|
java.lang.String |
toString() |
static BasicClient.ExceptionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BasicClient.ExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicClient.ExceptionType ConnectionFailed
public static final BasicClient.ExceptionType ConnectionRejected
public static final BasicClient.ExceptionType ConnectionTooLong
public static final BasicClient.ExceptionType UnknownErrorWhileConnected
public static BasicClient.ExceptionType[] values()
for (BasicClient.ExceptionType c : BasicClient.ExceptionType.values()) System.out.println(c);
public static BasicClient.ExceptionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void setText(java.lang.String englishText, java.lang.String frenchText)
REpiceaTranslator.TextableEnum
setText
in interface REpiceaTranslator.TextableEnum
englishText
- a StringfrenchText
- a Stringpublic java.lang.String toString()
toString
in class java.lang.Enum<BasicClient.ExceptionType>