Enum Class ErrorMessage
- All Implemented Interfaces:
Serializable
,Comparable<ErrorMessage>
,Constable
Enum that describes error messages due the workspace
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlgo name is a mandatory parameterBad RequestContainer already existContainer name and Folder name are a mandatory parameterContainer name is a mandatory parameterCONTAINER Container not found FOUNDContainer name and Object name are a mandatory parameterContainer name, Object name and size are a mandatory parameterFolder already existFolder not foundWhen zip contains file or folder with not allowed name example : (test.txt#)Internal Server ErrorNot allowed to perform actionObject already existObject not foundInput stream is null -
Method Summary
Modifier and TypeMethodDescriptiongetter for attribute messagetoString()
static ErrorMessage
Returns the enum constant of this class with the specified name.static ErrorMessage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTAINER_ALREADY_EXIST
Container already exist -
CONTAINER_NOT_FOUND
CONTAINER Container not found FOUND -
FOLDER_ALREADY_EXIST
Folder already exist -
FOLDER_NOT_FOUND
Folder not found -
OBJECT_ALREADY_EXIST
Object already exist -
OBJECT_NOT_FOUND
Object not found -
STREAM_IS_NULL
Input stream is null -
CONTAINER_NAME_IS_A_MANDATORY_PARAMETER
Container name is a mandatory parameter -
CONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETER
Container name and Folder name are a mandatory parameter -
CONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETER
Container name and Object name are a mandatory parameter -
CONTAINER_OBJECT_NAMES_SIZE_ARE_A_MANDATORY_PARAMETER
Container name, Object name and size are a mandatory parameter -
INTERNAL_SERVER_ERROR
Internal Server Error -
ALGO_IS_A_MANDATORY_PARAMETER
Algo name is a mandatory parameter -
FOLDER_OR_FILE_NAME_NOT_ALLOWED
When zip contains file or folder with not allowed name example : (test.txt#) -
BAD_REQUEST
Bad Request -
NOT_ACCEPTABLE_FILES
Not allowed to perform action
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMessage
getter for attribute message- Returns:
- message
-
toString
- Overrides:
toString
in classEnum<ErrorMessage>
-