Enum Class SdkErrorCode

java.lang.Object
java.lang.Enum<SdkErrorCode>
co.ankatech.ankasecure.sdk.exception.SdkErrorCode
All Implemented Interfaces:
Serializable, Comparable<SdkErrorCode>, Constable

public enum SdkErrorCode extends Enum<SdkErrorCode>
High-level, protocol-agnostic error categories recognised by the SDK.
Since:
2.2.0
Author:
ANKATech – Security Engineering
  • Enum Constant Details

    • TIMEOUT

      public static final SdkErrorCode TIMEOUT
      Network stack detected a connect / read / write timeout.
    • IO

      public static final SdkErrorCode IO
      Generic I/O problem (host unreachable, TLS failure, etc.).
    • HTTP

      public static final SdkErrorCode HTTP
      Remote endpoint replied with an HTTP 4xx / 5xx.
    • UNKNOWN

      public static final SdkErrorCode UNKNOWN
      Anything that cannot be classified more precisely.
  • Method Details

    • values

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