Enum ErrorMessage
- java.lang.Object
-
- java.lang.Enum<ErrorMessage>
-
- fr.gouv.vitam.common.storage.constants.ErrorMessage
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ErrorMessage>
public enum ErrorMessage extends java.lang.Enum<ErrorMessage>
Enum that describes error messages due the workspace
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALGO_IS_A_MANDATORY_PARAMETERAlgo name is a mandatory parameterBAD_REQUESTBad RequestCONTAINER_ALREADY_EXISTContainer already existCONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETERContainer name and Folder name are a mandatory parameterCONTAINER_NAME_IS_A_MANDATORY_PARAMETERContainer name is a mandatory parameterCONTAINER_NOT_FOUNDCONTAINER Container not found FOUNDCONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETERContainer name and Object name are a mandatory parameterCONTAINER_OBJECT_NAMES_SIZE_ARE_A_MANDATORY_PARAMETERContainer name, Object name and size are a mandatory parameterFOLDER_ALREADY_EXISTFolder already existFOLDER_NOT_FOUNDFolder not foundFOLDER_OR_FILE_NAME_NOT_ALLOWEDWhen zip contains file or folder with not allowed name example : (test.txt#)INTERNAL_SERVER_ERRORInternal Server ErrorNOT_ACCEPTABLE_FILESNot allowed to perform actionOBJECT_ALREADY_EXISTObject already existOBJECT_NOT_FOUNDObject not foundSTREAM_IS_NULLInput stream is null
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()getter for attribute messagejava.lang.StringtoString()static ErrorMessagevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ErrorMessage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTAINER_ALREADY_EXIST
public static final ErrorMessage CONTAINER_ALREADY_EXIST
Container already exist
-
CONTAINER_NOT_FOUND
public static final ErrorMessage CONTAINER_NOT_FOUND
CONTAINER Container not found FOUND
-
FOLDER_ALREADY_EXIST
public static final ErrorMessage FOLDER_ALREADY_EXIST
Folder already exist
-
FOLDER_NOT_FOUND
public static final ErrorMessage FOLDER_NOT_FOUND
Folder not found
-
OBJECT_ALREADY_EXIST
public static final ErrorMessage OBJECT_ALREADY_EXIST
Object already exist
-
OBJECT_NOT_FOUND
public static final ErrorMessage OBJECT_NOT_FOUND
Object not found
-
STREAM_IS_NULL
public static final ErrorMessage STREAM_IS_NULL
Input stream is null
-
CONTAINER_NAME_IS_A_MANDATORY_PARAMETER
public static final ErrorMessage CONTAINER_NAME_IS_A_MANDATORY_PARAMETER
Container name is a mandatory parameter
-
CONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETER
public static final ErrorMessage CONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETER
Container name and Folder name are a mandatory parameter
-
CONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETER
public static final ErrorMessage CONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETER
Container name and Object name are a mandatory parameter
-
CONTAINER_OBJECT_NAMES_SIZE_ARE_A_MANDATORY_PARAMETER
public static final ErrorMessage CONTAINER_OBJECT_NAMES_SIZE_ARE_A_MANDATORY_PARAMETER
Container name, Object name and size are a mandatory parameter
-
INTERNAL_SERVER_ERROR
public static final ErrorMessage INTERNAL_SERVER_ERROR
Internal Server Error
-
ALGO_IS_A_MANDATORY_PARAMETER
public static final ErrorMessage ALGO_IS_A_MANDATORY_PARAMETER
Algo name is a mandatory parameter
-
FOLDER_OR_FILE_NAME_NOT_ALLOWED
public static final ErrorMessage FOLDER_OR_FILE_NAME_NOT_ALLOWED
When zip contains file or folder with not allowed name example : (test.txt#)
-
BAD_REQUEST
public static final ErrorMessage BAD_REQUEST
Bad Request
-
NOT_ACCEPTABLE_FILES
public static final ErrorMessage NOT_ACCEPTABLE_FILES
Not allowed to perform action
-
-
Method Detail
-
values
public static ErrorMessage[] 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 (ErrorMessage c : ErrorMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorMessage 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
-
getMessage
public java.lang.String getMessage()
getter for attribute message- Returns:
- message
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<ErrorMessage>
-
-