Package com.zopim.android.sdk.model
Enum ChatLog.Error
- java.lang.Object
-
- java.lang.Enum<ChatLog.Error>
-
- com.zopim.android.sdk.model.ChatLog.Error
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ChatLog.Error>
- Enclosing class:
- ChatLog
public static enum ChatLog.Error extends java.lang.Enum<ChatLog.Error>
Error type that can occur.ChatLog.Error.UPLOAD_SIZE_ERROR
Size validation failed error as defined in Zopim attachments pageChatLog.Error.UPLOAD_FILE_EXTENSION_ERROR
Extension validation failed error as defined in Zopim attachments pageChatLog.Error.UPLOAD_FAILED_ERROR
Upload error occurred during file upload requestChatLog.Error.UNKNOWN
Unknown error
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description UNKNOWN
UPLOAD_FAILED_ERROR
UPLOAD_FILE_EXTENSION_ERROR
UPLOAD_SIZE_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ChatLog.Error
getType(java.lang.String value)
Gets the error enum type of the value passed as parameterjava.lang.String
getValue()
Gets the value of this error type enumstatic ChatLog.Error
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
UPLOAD_SIZE_ERROR
public static final ChatLog.Error UPLOAD_SIZE_ERROR
-
UPLOAD_FILE_EXTENSION_ERROR
public static final ChatLog.Error UPLOAD_FILE_EXTENSION_ERROR
-
UPLOAD_FAILED_ERROR
public static final ChatLog.Error UPLOAD_FAILED_ERROR
-
UNKNOWN
public static final ChatLog.Error UNKNOWN
-
-
Method Detail
-
values
public static ChatLog.Error[] 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 (ChatLog.Error c : ChatLog.Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChatLog.Error 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
-
getValue
public java.lang.String getValue()
Gets the value of this error type enum- Returns:
- error name for this type
-
getType
public static ChatLog.Error getType(java.lang.String value)
Gets the error enum type of the value passed as parameter- Parameters:
value
- to interpret- Returns:
- error type or
ChatLog.Error.UNKNOWN
if not found
-
-