yr.exit
exit(
exit_code: int,
reason: str,
return_value: object,
error_cause: ErrorCause | None = None,
) → NoneEnd the current app run.
Parameters
exit_code
type: int
Process-style exit code; 0 for success, non-zero
for failure.
reason
type: str
Human-readable summary of why the run ended.
return_value
type: object
Value to return to the caller, or None.
error_cause
type: ErrorCause | None = None
Optional structured cause metadata for failure exits.
See ErrorCause.