Package org.a2aproject.sdk.spec
Class A2AException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.a2aproject.sdk.spec.A2AException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
A2AClientException,A2AServerException
Base exception for A2A Protocol-related failures.
This is the root exception class for all A2A Protocol exceptions, providing a common
base type for exception handling. It extends RuntimeException to allow unchecked
exception propagation throughout A2A client and server implementations.
Specialized subclasses:
A2AServerException- Server-side failuresA2AClientException- Client-side failures
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newA2AExceptioninstance.A2AException(String msg) Constructs a newA2AExceptioninstance with an initial message.A2AException(String msg, Throwable cause) Constructs a newA2AExceptioninstance with an initial message and cause.A2AException(Throwable cause) Constructs a newA2AExceptioninstance with an initial 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
-
A2AException
public A2AException()Constructs a newA2AExceptioninstance. The message is left blank (null), and no cause is specified. -
A2AException
Constructs a newA2AExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
A2AException
Constructs a newA2AExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisA2AException; otherwise the message is left blank (null).- Parameters:
cause- the cause
-
A2AException
Constructs a newA2AExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the cause
-