A2uiMessageProcessorKt

Added in 1.0.0-alpha01

public final class A2uiMessageProcessorKt


Summary

Public methods

static final void
<T extends Object> processInput(
    @NonNull A2uiMessageProcessor receiver,
    @NonNull A2uiMessageParser<@NonNull T> parser,
    @NonNull T input
)

Parses input using parser and enqueues the resulting message into this processor.

Public methods

processInput

public static final void <T extends Object> processInput(
    @NonNull A2uiMessageProcessor receiver,
    @NonNull A2uiMessageParser<@NonNull T> parser,
    @NonNull T input
)

Parses input using parser and enqueues the resulting message into this processor.

If parsing fails with an A2uiException (such as A2uiException.A2uiValidationException), the exception is caught, converted into an A2uiClientErrorMessage, and sent to processError. Unexpected runtime exceptions are not caught.

Parameters
@NonNull A2uiMessageParser<@NonNull T> parser

The parser to use for parsing the input.

@NonNull T input

The raw input to parse and process.