Enum Class DomainName

java.lang.Object
java.lang.Enum<DomainName>
fr.gouv.vitam.common.error.DomainName
All Implemented Interfaces:
Serializable, Comparable<DomainName>, Constable

public enum DomainName extends Enum<DomainName>
Enum of Vitam domains
  • Enum Constant Details

    • TEST

      public static final DomainName TEST
      ONLY FOR TEST PURPOSE (do not remove)
    • IO

      public static final DomainName IO
      Used for: FileNotFound FileAlreadyExists Json*Exception InvalidParse...
    • NETWORK

      public static final DomainName NETWORK
      Used for: Server problems Client problems Network anomalies...
    • ILLEGAL

      public static final DomainName ILLEGAL
      Used for: IllegalArgument UnsupportedOperation Schema XML...
    • DATABASE

      public static final DomainName DATABASE
      Used for: ReferentialException DatabaseConflict...
    • STORAGE

      public static final DomainName STORAGE
      Used for: No space left StorageNotFound...
    • BUSINESS

      public static final DomainName BUSINESS
      Used for business anomalies
    • SECURITY

      public static final DomainName SECURITY
      Used for: Permissions anomalies Security problems
    • VALIDATION

      public static final DomainName VALIDATION
  • Method Details

    • values

      public static DomainName[] 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

      public static DomainName valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
      Returns:
      code
    • getName

      public String getName()
      Returns:
      name
    • getFromCode

      public static DomainName getFromCode(String code)
      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