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_ERRORSize validation failed error as defined in Zopim attachments page
- ChatLog.Error.UPLOAD_FILE_EXTENSION_ERRORExtension validation failed error as defined in Zopim attachments page
- ChatLog.Error.UPLOAD_FAILED_ERRORUpload error occurred during file upload request
- ChatLog.Error.UNKNOWNUnknown error
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant and Description UNKNOWNUPLOAD_FAILED_ERRORUPLOAD_FILE_EXTENSION_ERRORUPLOAD_SIZE_ERROR
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static ChatLog.ErrorgetType(java.lang.String value)Gets the error enum type of the value passed as parameterjava.lang.StringgetValue()Gets the value of this error type enumstatic ChatLog.ErrorvalueOf(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_ERRORpublic static final ChatLog.Error UPLOAD_SIZE_ERROR 
 - 
UPLOAD_FILE_EXTENSION_ERRORpublic static final ChatLog.Error UPLOAD_FILE_EXTENSION_ERROR 
 - 
UPLOAD_FAILED_ERRORpublic static final ChatLog.Error UPLOAD_FAILED_ERROR 
 - 
UNKNOWNpublic static final ChatLog.Error UNKNOWN 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- java.lang.NullPointerException- if the argument is null
 
 - 
getValuepublic java.lang.String getValue() Gets the value of this error type enum- Returns:
- error name for this type
 
 - 
getTypepublic 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.UNKNOWNif not found
 
 
- 
 
-