A2uiException


sealed class A2uiException : 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 functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String

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

Map<StringAny?>

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

code

Added in 1.0.0-alpha01
val codeString

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.

context

Added in 1.0.0-alpha01
val contextMap<StringAny?>

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