Package fr.gouv.vitam.common.error
Enum Class DomainName
- All Implemented Interfaces:
Serializable
,Comparable<DomainName>
,Constable
Enum of Vitam domains
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUsed for business anomaliesUsed for: ReferentialException DatabaseConflict...Used for: IllegalArgument UnsupportedOperation Schema XML...Used for: FileNotFound FileAlreadyExists Json*Exception InvalidParse...Used for: Server problems Client problems Network anomalies...Used for: Permissions anomalies Security problemsUsed for: No space left StorageNotFound...ONLY FOR TEST PURPOSE (do not remove) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
static DomainName
getFromCode
(String code) Retrieve DomainName from codegetName()
static DomainName
Returns the enum constant of this class with the specified name.static DomainName[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEST
ONLY FOR TEST PURPOSE (do not remove) -
IO
Used for: FileNotFound FileAlreadyExists Json*Exception InvalidParse... -
NETWORK
Used for: Server problems Client problems Network anomalies... -
ILLEGAL
Used for: IllegalArgument UnsupportedOperation Schema XML... -
DATABASE
Used for: ReferentialException DatabaseConflict... -
STORAGE
Used for: No space left StorageNotFound... -
BUSINESS
Used for business anomalies -
SECURITY
Used for: Permissions anomalies Security problems -
VALIDATION
-
-
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
-
getCode
- Returns:
- code
-
getName
- Returns:
- name
-
getFromCode
Retrieve DomainName from code- Parameters:
code
- the code- Returns:
- the domain if exists
- Throws:
IllegalArgumentException
- thrown if code is null or empty or if the attached domain to the code does not exist
-