A2uiClientErrorMessage


class A2uiClientErrorMessage : A2uiClientToServerMessage


Represents a client-side execution or validation error reported to the server.

Summary

Public constructors

A2uiClientErrorMessage(
    code: String,
    surfaceId: String,
    message: String,
    context: Map<StringAny?>
)

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").

Map<StringAny?>

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

String

A human-readable description of the error.

String

The unique ID of the surface where the error occurred.

Public constructors

A2uiClientErrorMessage

A2uiClientErrorMessage(
    code: String,
    surfaceId: String,
    message: String,
    context: Map<StringAny?> = emptyMap()
)

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").

context

Added in 1.0.0-alpha01
val contextMap<StringAny?>

A map containing custom properties and error context (such as the target path). For validation errors ("VALIDATION_FAILED"), this map must contain exactly the "path" key (whose value must be a non-null String) and absolutely nothing else. For other errors, it is open-ended.

message

Added in 1.0.0-alpha01
val messageString

A human-readable description of the error.

surfaceId

Added in 1.0.0-alpha01
val surfaceIdString

The unique ID of the surface where the error occurred.