Enum Class ServerError.Kind

java.lang.Object
java.lang.Enum<ServerError.Kind>
dev.tachyonmcp.api.server.domain.ServerError.Kind
All Implemented Interfaces:
Serializable, Comparable<ServerError.Kind>, Constable
Enclosing class:
ServerError

public static enum ServerError.Kind extends Enum<ServerError.Kind>
Categorizes the nature of a server error.
  • Enum Constant Details

    • PARSE_ERROR

      public static final ServerError.Kind PARSE_ERROR
      The request could not be parsed as valid JSON.
    • INVALID_REQUEST

      public static final ServerError.Kind INVALID_REQUEST
      The request was not a valid JSON-RPC request.
    • METHOD_NOT_FOUND

      public static final ServerError.Kind METHOD_NOT_FOUND
      The requested method was not found.
    • INVALID_PARAMS

      public static final ServerError.Kind INVALID_PARAMS
      The method parameters were invalid.
    • INTERNAL_ERROR

      public static final ServerError.Kind INTERNAL_ERROR
      An internal server error occurred.
    • RESOURCE_NOT_FOUND

      public static final ServerError.Kind RESOURCE_NOT_FOUND
      The requested resource was not found.
    • HEADER_MISMATCH

      public static final ServerError.Kind HEADER_MISMATCH
      A required header did not match expectations.
    • MISSING_REQUIRED_CLIENT_CAPABILITY

      public static final ServerError.Kind MISSING_REQUIRED_CLIENT_CAPABILITY
      The client is missing a required capability.
    • UNSUPPORTED_PROTOCOL_VERSION

      public static final ServerError.Kind UNSUPPORTED_PROTOCOL_VERSION
      The protocol version is not supported.
  • Method Details

    • values

      public static ServerError.Kind[] 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 ServerError.Kind 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