A2uiException.A2uiValidationException


public final class A2uiException.A2uiValidationException extends A2uiException


Thrown when an incoming JSON payload from the server structurally violates its defined A2uiSchema. The framework throws this before allowing corrupted data into the state models.

Summary

Public constructors

Inherited methods

From androidx.a2ui.model.protocol.A2uiException
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
From kotlin.Throwable

Public constructors

A2uiValidationException

Added in 1.0.0-alpha01
public A2uiValidationException(@NonNull String message, @NonNull String path)
Parameters
@NonNull String message

A human-readable description of the validation error.

@NonNull String path

The JSON pointer path identifying where the validation failure occurred.