Enum Class A2AErrorTypes
- All Implemented Interfaces:
Serializable,Comparable<A2AErrorTypes>,Constable,org.mule.runtime.extension.api.error.ErrorTypeDefinition<A2AErrorTypes>
public enum A2AErrorTypes
extends Enum<A2AErrorTypes>
implements org.mule.runtime.extension.api.error.ErrorTypeDefinition<A2AErrorTypes>
Represents an error that can happen in an A2A operation.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInternal error either on the remove server or this connectorInvalid agent cardSupplied parameters were invalidThe request was invalid or malformedParent type for errors that match those defined in the Json RPC standardThe remote MCP server does not support the given method, most likely due to a version incompatibility or a bugOccurs when a JSON object could not be parsed and/or is malformedThe request timed out.Requested task already completed cannot be cancelledRequested task is not found or doesn't existClient not Authorized -
Method Summary
Modifier and TypeMethodDescriptionstatic A2AErrorTypesfromRpcErrorCode(Integer errorCode) booleanstatic A2AErrorTypesReturns the enum constant of this class with the specified name.static A2AErrorTypes[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.mule.runtime.extension.api.error.ErrorTypeDefinition
getType
-
Enum Constant Details
-
JSON_RPC_ERROR
Parent type for errors that match those defined in the Json RPC standard -
PARSE_ERROR
Occurs when a JSON object could not be parsed and/or is malformed -
INVALID_REQUEST
The request was invalid or malformed -
METHOD_NOT_FOUND
The remote MCP server does not support the given method, most likely due to a version incompatibility or a bug -
INVALID_PARAMS
Supplied parameters were invalid -
INTERNAL_ERROR
Internal error either on the remove server or this connector -
SERVER_ERROR
-
TASK_NOT_FOUND
Requested task is not found or doesn't exist -
TASK_ALREADY_COMPLETED
Requested task already completed cannot be cancelled -
REQUEST_TIMEOUT
The request timed out. In the case of asynchronous transports like SSE, this also includes the time until a response is obtained. -
UNAUTHORIZED
Client not Authorized -
INVALID_AGENT_CARD
Invalid agent card
-
-
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
-
fromRpcErrorCode
- Parameters:
errorCode- a JSON RPC error code- Returns:
- the error type that most closely matches it
-
getJsonRpcCode
-
getParent
public Optional<org.mule.runtime.extension.api.error.ErrorTypeDefinition<? extends Enum<?>>> getParent()- Specified by:
getParentin interfaceorg.mule.runtime.extension.api.error.ErrorTypeDefinition<A2AErrorTypes>
-
isJsonRpcError
public boolean isJsonRpcError()
-