public static enum ChatLog.Error extends Enum<ChatLog.Error>
UPLOAD_SIZE_ERROR
Size validation failed error as defined in Zopim attachments pageUPLOAD_FILE_EXTENSION_ERROR
Extension validation failed error as defined in Zopim attachments pageUPLOAD_FAILED_ERROR
Upload error occurred during file upload requestUNKNOWN
Unknown errorEnum Constant and Description |
---|
UNKNOWN |
UPLOAD_FAILED_ERROR |
UPLOAD_FILE_EXTENSION_ERROR |
UPLOAD_SIZE_ERROR |
Modifier and Type | Method and Description |
---|---|
static ChatLog.Error |
getType(String value)
Gets the error enum type of the value passed as parameter
|
String |
getValue()
Gets the value of this error type enum
|
static ChatLog.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatLog.Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatLog.Error UPLOAD_SIZE_ERROR
public static final ChatLog.Error UPLOAD_FILE_EXTENSION_ERROR
public static final ChatLog.Error UPLOAD_FAILED_ERROR
public static final ChatLog.Error UNKNOWN
public static ChatLog.Error[] values()
for (ChatLog.Error c : ChatLog.Error.values()) System.out.println(c);
public static ChatLog.Error 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 getValue()
@NonNull public static ChatLog.Error getType(String value)
value
- to interpretUNKNOWN
if not found