Package org.a2aproject.sdk.spec
Class ExtendedAgentCardNotConfiguredError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.a2aproject.sdk.spec.A2AError
org.a2aproject.sdk.spec.A2AProtocolError
org.a2aproject.sdk.spec.ExtendedAgentCardNotConfiguredError
- All Implemented Interfaces:
Serializable,Event
A2A Protocol error indicating that the agent does not have an authenticated extended card configured.
This error is returned when a client attempts to retrieve an authenticated extended agent card, but the agent has not configured authentication-protected extended card information.
Extended cards may contain additional agent metadata, capabilities, or configuration that should only be accessible to authenticated clients. Agents that don't implement this feature will return this error.
Corresponds to A2A-specific error code -32007.
Usage example:
// In agent implementation
if (extendedAgentCard == null) {
throw new ExtendedAgentCardNotConfiguredError();
}
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.a2aproject.sdk.spec.A2AError
getCode, getDetailsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExtendedAgentCardNotConfiguredError
public ExtendedAgentCardNotConfiguredError(@Nullable Integer code, @Nullable String message, @Nullable Map<String, Object> details) Constructs an error for agents that don't support authenticated extended card retrieval.- Parameters:
code- the error codemessage- the error messagedetails- additional error details
-