Package tkrzw

Enum Class Status.Code

All Implemented Interfaces:
Serializable, Comparable<Status.Code>, Constable
Enclosing class:
Status

public static enum Status.Code extends Enum<Status.Code>
Enumeration of status codes.
  • Enum Constant Details

    • SUCCESS

      public static final Status.Code SUCCESS
      Success.
    • UNKNOWN_ERROR

      public static final Status.Code UNKNOWN_ERROR
      Generic error whose cause is unknown.
    • SYSTEM_ERROR

      public static final Status.Code SYSTEM_ERROR
      Generic error from underlying systems.
    • NOT_IMPLEMENTED_ERROR

      public static final Status.Code NOT_IMPLEMENTED_ERROR
      Error that the feature is not implemented.
    • PRECONDITION_ERROR

      public static final Status.Code PRECONDITION_ERROR
      Error that a precondition is not met.
    • INVALID_ARGUMENT_ERROR

      public static final Status.Code INVALID_ARGUMENT_ERROR
      Error that a given argument is invalid.
    • CANCELED_ERROR

      public static final Status.Code CANCELED_ERROR
      Error that the operation is canceled.
    • NOT_FOUND_ERROR

      public static final Status.Code NOT_FOUND_ERROR
      Error that a specific resource is not found.
    • PERMISSION_ERROR

      public static final Status.Code PERMISSION_ERROR
      Error that the operation is not permitted.
    • INFEASIBLE_ERROR

      public static final Status.Code INFEASIBLE_ERROR
      Error that the operation is infeasible.
    • DUPLICATION_ERROR

      public static final Status.Code DUPLICATION_ERROR
      Error that a specific resource is duplicated.
    • BROKEN_DATA_ERROR

      public static final Status.Code BROKEN_DATA_ERROR
      Error that internal data are broken.
    • NETWORK_ERROR

      public static final Status.Code NETWORK_ERROR
      Error caused by networking failure.
    • APPLICATION_ERROR

      public static final Status.Code APPLICATION_ERROR
      Generic error caused by the application logic.
  • Method Details

    • values

      public static Status.Code[] 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 Status.Code 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
    • valueOf

      public static Status.Code valueOf(int num)
      Returns the code enum matching an integer.
      Parameters:
      num - The integer for the code.
      Returns:
      The mathing code.