yera.apps.exceptions

App-specific exceptions.

Symbols

class AppRuntimeError — Raised when an app exits with a non-zero exit code.
class ErrorCause — Structured metadata about the cause of an app exit error.

AppRuntimeError

Inherits: RuntimeError

Raised 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: BaseModel

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