Enum Class TenantSecurityErrorCodes

java.lang.Object
java.lang.Enum<TenantSecurityErrorCodes>
com.ironcorelabs.tenantsecurity.kms.v1.TenantSecurityErrorCodes
All Implemented Interfaces:
Serializable, Comparable<TenantSecurityErrorCodes>, java.lang.constant.Constable

public enum TenantSecurityErrorCodes extends Enum<TenantSecurityErrorCodes>
Enum of error codes that can occur as part of requests to the Tenant Security Proxy Docker container.
  • Enum Constant Details

  • Method Details

    • values

      public static TenantSecurityErrorCodes[] 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 TenantSecurityErrorCodes 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 int getCode()
      Get the numerical code value.
      Returns:
      Numerical value for this error code.
    • getMessage

      public String getMessage()
      Get the human readable error message associated with this error code.
      Returns:
      Readable error message for this error code.
    • valueOf

      public static TenantSecurityErrorCodes valueOf(int errorCode)
      Get an instance of an TenantSecurityErrorCodes from the provided numerical code.
      Parameters:
      errorCode - The numerical error code to lookup.
      Returns:
      Instance of TenantSecurityErrorCodes or null if provided code doesn't exist.