yera.runtime.exceptions

Event-related exceptions.

Symbols

class InputProtocolError — Base error for an invalid input protocol transition.
class InputRequestMismatchError — Raised when a response targets a different input request.
class InputTypeMismatchError — Raised when a response carries the wrong typed input data.
class InputValueError — Raised when submitted input is invalid for its request.
class StreamEndedError — Raised when an event iterator ends without a terminating event.
class UnsupportedAwaitUserBlockError — Raised when the built-in stream handler encounters an await_user block other than text input.

InputProtocolError

Inherits: Exception

Base error for an invalid input protocol transition.

InputRequestMismatchError

Raised when a response targets a different input request.

InputTypeMismatchError

Raised when a response carries the wrong typed input data.

InputValueError

Raised when submitted input is invalid for its request.

StreamEndedError

Inherits: RuntimeError

Raised when an event iterator ends without a terminating event.

Signals that the producer stopped — process died, stream closed — before emitting a lifecycle or prompt event. Subclasses RuntimeError so existing broad handlers keep working during the transition.

UnsupportedAwaitUserBlockError

Inherits: Exception

Raised when the built-in stream handler encounters an await_user block other than text input.

The built-in stream handler (used when the app is invoked directly, not via the stream server) only supports input_request. For buttons, slider, date picker forms, etc., run the app using the dev server (web UI) via the yera CLI.

Methods

__init__ — Build an error identifying the unsupported interactive block.

UnsupportedAwaitUserBlockError.__init__

__init__(
    block_type: str,
) → None

Build an error identifying the unsupported interactive block.

Parameters

block_type
type: str

Block type encountered by the built-in stream handler.