Enum Class AkashErrorType

java.lang.Object
java.lang.Enum<AkashErrorType>
cloud.quasarch.akash.impl.model.remote.AkashErrorType
All Implemented Interfaces:
Serializable, Comparable<AkashErrorType>, Constable

public enum AkashErrorType extends Enum<AkashErrorType>
Types of error that can occur while interacting with akash network.
  • Enum Constant Details

    • AkashNetworkError

      public static final AkashErrorType AkashNetworkError
      Error related to wire level data transfer. It can/should be retried
    • AuthError

      public static final AkashErrorType AuthError
      Authentication/Authorization related error; a retry is not advised without renegotiation of authentication tokens.
    • StateError

      public static final AkashErrorType StateError
      The current state of transaction/request doesn't allow the requested operation.
    • BadRequest

      public static final AkashErrorType BadRequest
      The request is malformed, invalid. Should not be retried.
    • ClientError

      public static final AkashErrorType ClientError
      Error related to the client TODO
  • Method Details

    • values

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