A2uiFormatException

class A2uiFormatException(message: String, cause: Throwable? = null) : SerializationException

Thrown when a payload is well-formed JSON but does not describe a valid A2UI structure.

This is a SerializationException, so a caller that already catches serialization failures catches these too.

Note that catching SerializationException is not sufficient on its own for untrusted input: neither this library nor kotlinx.serialization bounds nesting depth, so a deeply nested payload fails with a StackOverflowError — an Error, not an exception. Bound the size and nesting of a payload at the transport before handing it to A2uiJson.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?