A2uiClientErrorMessage


public final class A2uiClientErrorMessage implements A2uiClientToServerMessage


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

Summary

Public constructors

A2uiClientErrorMessage(
    @NonNull String code,
    @NonNull String surfaceId,
    @NonNull String message,
    @NonNull Map<@NonNull StringObject> context
)

Public methods

boolean
equals(Object other)
final @NonNull String

An error category identifier (such as "VALIDATION_FAILED" or "RUNTIME_ERROR").

final @NonNull Map<@NonNull StringObject>

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

final @NonNull String

A human-readable description of the error.

final @NonNull String

The unique ID of the surface where the error occurred.

int
@NonNull String

Public constructors

A2uiClientErrorMessage

public A2uiClientErrorMessage(
    @NonNull String code,
    @NonNull String surfaceId,
    @NonNull String message,
    @NonNull Map<@NonNull StringObject> context
)

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

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

getMessage

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

A human-readable description of the error.

getSurfaceId

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

The unique ID of the surface where the error occurred.

hashCode

public int hashCode()

toString

public @NonNull String toString()