Package dev.tachyonmcp.api.server.domain
Enum Class ServerError.Kind
- All Implemented Interfaces:
Serializable,Comparable<ServerError.Kind>,Constable
- Enclosing class:
ServerError
Categorizes the nature of a server error.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA required header did not match expectations.An internal server error occurred.The method parameters were invalid.The request was not a valid JSON-RPC request.The requested method was not found.The client is missing a required capability.The request could not be parsed as valid JSON.The requested resource was not found.The protocol version is not supported. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerError.KindReturns the enum constant of this class with the specified name.static ServerError.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARSE_ERROR
The request could not be parsed as valid JSON. -
INVALID_REQUEST
The request was not a valid JSON-RPC request. -
METHOD_NOT_FOUND
The requested method was not found. -
INVALID_PARAMS
The method parameters were invalid. -
INTERNAL_ERROR
An internal server error occurred. -
RESOURCE_NOT_FOUND
The requested resource was not found. -
HEADER_MISMATCH
A required header did not match expectations. -
MISSING_REQUIRED_CLIENT_CAPABILITY
The client is missing a required capability. -
UNSUPPORTED_PROTOCOL_VERSION
The protocol version is not supported.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-