java.lang.Object
java.lang.Enum<Error.Code>
me.tomsdevsn.hetznercloud.objects.general.Error.Code
All Implemented Interfaces:
Serializable, Comparable<Error.Code>, java.lang.constant.Constable
Enclosing class:
Error

public static enum Error.Code extends Enum<Error.Code>
  • Enum Constant Details

    • FORBIDDEN

      public static final Error.Code FORBIDDEN
    • INVALID_INPUT

      public static final Error.Code INVALID_INPUT
    • JSON_ERROR

      public static final Error.Code JSON_ERROR
    • LOCKED

      public static final Error.Code LOCKED
    • NOT_FOUND

      public static final Error.Code NOT_FOUND
    • RATE_LIMIT_EXCEEDED

      public static final Error.Code RATE_LIMIT_EXCEEDED
    • RESOURCE_LIMIT_EXCEEDED

      public static final Error.Code RESOURCE_LIMIT_EXCEEDED
    • RESOURCE_UNAVAILABLE

      public static final Error.Code RESOURCE_UNAVAILABLE
    • SERVICE_ERROR

      public static final Error.Code SERVICE_ERROR
    • UNIQUENESS_ERROR

      public static final Error.Code UNIQUENESS_ERROR
    • PROTECTED

      public static final Error.Code PROTECTED
    • MAINTENANCE

      public static final Error.Code MAINTENANCE
    • CONFLICT

      public static final Error.Code CONFLICT
    • UNSUPPORTED_ERROR

      public static final Error.Code UNSUPPORTED_ERROR
    • TOKEN_READONLY

      public static final Error.Code TOKEN_READONLY
  • Method Details

    • values

      public static Error.Code[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Error.Code valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null