public enum ErrorMessage extends Enum<ErrorMessage>
Enum Constant and Description |
---|
ALGO_IS_A_MANDATORY_PARAMETER
Algo name is a mandatory parameter
|
CONTAINER_ALREADY_EXIST
Container already exist
|
CONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETER
Container name and Folder name are a mandatory parameter
|
CONTAINER_NAME_IS_A_MANDATORY_PARAMETER
Container name is a mandatory parameter
|
CONTAINER_NOT_FOUND
CONTAINER Container not found FOUND
|
CONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETER
Container name and Object name are a mandatory parameter
|
FOLDER_ALREADY_EXIST
Folder already exist
|
FOLDER_NOT_FOUND
Folder not found
|
FOLDER_OR_FILE_NAME_NOT_ALLOWED
When zip contains file or folder with not allowed name example : (test.txt#)
|
INTERNAL_SERVER_ERROR
Internal Server Error
|
OBJECT_ALREADY_EXIST
Object already exist
|
OBJECT_NOT_FOUND
Object not found
|
STREAM_IS_NULL
Input stream is null
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
getter for attribute message
|
String |
toString() |
static ErrorMessage |
valueOf(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.
|
public static final ErrorMessage CONTAINER_ALREADY_EXIST
public static final ErrorMessage CONTAINER_NOT_FOUND
public static final ErrorMessage FOLDER_ALREADY_EXIST
public static final ErrorMessage FOLDER_NOT_FOUND
public static final ErrorMessage OBJECT_ALREADY_EXIST
public static final ErrorMessage OBJECT_NOT_FOUND
public static final ErrorMessage STREAM_IS_NULL
public static final ErrorMessage CONTAINER_NAME_IS_A_MANDATORY_PARAMETER
public static final ErrorMessage CONTAINER_FOLDER_NAMES_ARE_A_MANDATORY_PARAMETER
public static final ErrorMessage CONTAINER_OBJECT_NAMES_ARE_A_MANDATORY_PARAMETER
public static final ErrorMessage INTERNAL_SERVER_ERROR
public static final ErrorMessage ALGO_IS_A_MANDATORY_PARAMETER
public static final ErrorMessage FOLDER_OR_FILE_NAME_NOT_ALLOWED
public static ErrorMessage[] values()
for (ErrorMessage c : ErrorMessage.values()) System.out.println(c);
public static ErrorMessage 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 getMessage()
public String toString()
toString
in class Enum<ErrorMessage>
Copyright © 2018 Vitam. All rights reserved.