submission_cli.SubmissionAbort

submission_cli.SubmissionAbort(reason, message)

Raised by the five gate helpers when a submission cannot proceed.

Carries the :attr:reason enum member so callers can map to an integer exit code without parsing message strings. No exit code is stored here — that is caller policy.

Parameters

reason : AbortReason The category of the failure. message : str Human-readable description forwarded from the underlying exception.

Attributes

reason : AbortReason The named failure category.

Examples:

::: {#0b475007 .cell execution_count=1}
``` {.python .cell-code}
from spotforecast2_safe.submission_cli import AbortReason, SubmissionAbort

try:
    raise SubmissionAbort(AbortReason.DATE, "bad date arithmetic")
except SubmissionAbort as exc:
    print(exc.reason, str(exc))
```

::: {.cell-output .cell-output-stdout}
```
AbortReason.DATE bad date arithmetic
```
:::
:::