Enum Class ExceptionCode

java.lang.Object
java.lang.Enum<ExceptionCode>
es.kukenan.smartfi.common.service.exceptions.enums.ExceptionCode
All Implemented Interfaces:
Serializable, Comparable<ExceptionCode>, Constable

public enum ExceptionCode extends Enum<ExceptionCode>
Exception codes for known common error conditions.
  • Enum Constant Details

    • C4000000

      public static final ExceptionCode C4000000
      InvalidCallException, caused by invalid arguments received from a client.
    • C4010000

      public static final ExceptionCode C4010000
      Generic invalid credentials error condition.
    • C4030000

      public static final ExceptionCode C4030000
      Generic forbidden operation error condition.
    • C4040000

      public static final ExceptionCode C4040000
      Generic specified entity does not exist error condition.
    • S5000000

      public static final ExceptionCode S5000000
      Generic unexpected server error condition.
    • S5030000

      public static final ExceptionCode S5030000
      Generic unavailable backing service error condition.
    • C403000001

      public static final ExceptionCode C403000001
      Otp required Generic custom code.
    • C403000002

      public static final ExceptionCode C403000002
      Otp blocked generic custom code.
    • C403000003

      public static final ExceptionCode C403000003
      OTP required Generic custom code but OTP was not generated, extra request param needed to force OTP generation.
  • Constructor Details

    • ExceptionCode

      private ExceptionCode()
  • Method Details

    • values

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