yera.apps.exceptions
App-specific exceptions.
Symbols
AppRuntimeError
Inherits:
RuntimeErrorRaised when an app exits with a non-zero exit code.
Raised by the app decorator instead of calling sys.exit, so callers can catch a normal exception and e.g. call sys.exit(exit_code) in a runner.
ErrorCause
Inherits:
BaseModelStructured metadata about the cause of an app exit error.
Always includes error_type. May include additional fields like block_type for specific error types (e.g., UnsupportedAwaitUserBlockError).
StreamEndedError
Inherits:
RuntimeErrorRaised 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.