Package org.a2aproject.sdk.spec
Class A2AServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.a2aproject.sdk.spec.A2AException
org.a2aproject.sdk.spec.A2AServerException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TaskStoreException
Exception indicating a server-side failure in A2A Protocol operations.
This exception is thrown by A2A server implementations when encountering errors during request processing, task execution, or other server-side operations.
Common scenarios:
- Agent execution failures
- Task store persistence errors
- Resource exhaustion or limits exceeded
- Configuration errors
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new A2AServerException with no message.A2AServerException(String msg) Creates a new A2AServerException with the specified message.A2AServerException(String msg, Throwable cause) Creates a new A2AServerException with the specified message and cause.A2AServerException(Throwable cause) Creates a new A2AServerException with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
A2AServerException
public A2AServerException()Creates a new A2AServerException with no message. -
A2AServerException
Creates a new A2AServerException with the specified message.- Parameters:
msg- the exception message
-
A2AServerException
Creates a new A2AServerException with the specified cause.- Parameters:
cause- the underlying cause
-
A2AServerException
Creates a new A2AServerException with the specified message and cause.- Parameters:
msg- the exception messagecause- the underlying cause
-