A2uiException


public sealed class A2uiException extends Exception

Known direct subclasses
A2uiException.A2uiRuntimeException

Thrown for any client-side runtime or execution failures (such as dynamic binding or function evaluation failures) that should be reported to the agent and are not structural validation errors

A2uiException.A2uiValidationException

Thrown when an incoming JSON payload from the server structurally violates its defined A2uiSchema.


Base class for all A2UI protocol and execution errors.

Summary

Nested types

Thrown for any client-side runtime or execution failures (such as dynamic binding or function evaluation failures) that should be reported to the agent and are not structural validation errors

Thrown when an incoming JSON payload from the server structurally violates its defined A2uiSchema.

Public methods

boolean
equals(Object other)
final @NonNull String

An error category identifier (such as "VALIDATION_FAILED" or "RUNTIME_ERROR") that is automatically assigned by the exception subclass.

final @NonNull Map<@NonNull StringObject>

A map containing custom properties and error context (such as the target path).

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getCode

Added in 1.0.0-alpha01
public final @NonNull String getCode()

An error category identifier (such as "VALIDATION_FAILED" or "RUNTIME_ERROR") that is automatically assigned by the exception subclass. This identifier is reported back to the server in the error payload, allowing the remote agent to recognize and handle the specific category of failure.

getContext

Added in 1.0.0-alpha01
public final @NonNull Map<@NonNull StringObjectgetContext()

A map containing custom properties and error context (such as the target path).

hashCode

public int hashCode()

toString

public @NonNull String toString()