Package kalix.javasdk

Enum StatusCode.ErrorCode

Object
Enum<StatusCode.ErrorCode>
kalix.javasdk.StatusCode.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode.ErrorCode>, StatusCode
Enclosing interface:
StatusCode

public static enum StatusCode.ErrorCode extends Enum<StatusCode.ErrorCode> implements StatusCode
The supported HTTP error codes that can be used when replying from the Kalix user function.
  • Enum Constant Details

  • Method Details

    • values

      public static StatusCode.ErrorCode[] 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 StatusCode.ErrorCode 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
    • value

      public int value()
      Specified by:
      value in interface StatusCode