- integrations
- Python
- ocx_sdk
ExitCode to OcxError
ExitCodeclass#
ocx_sdk._errorsView sourceForgeCapabilityUnavailableErrorclass#
ocx_sdk._errorsView sourceclass ForgeCapabilityUnavailableError(OcxProcessError)Bases: OcxProcessError
A forge was reached and refused a write for want of a capability (exit 86).
Raised by announce/claim under --transport git when job-token push
is disabled on the index project or the publishing project is missing
from its allowlist. Distinct from 69 (the forge could not be reached at
all) and from 80 (the credential is valid here — the refusal is not on it).
IoErrorclass#
ocx_sdk._errorsView sourceclass IoError(OcxProcessError)Bases: OcxProcessError
A filesystem or network I/O operation failed (exit 74).
NotFoundErrorclass#
ocx_sdk._errorsView sourceclass NotFoundError(OcxProcessError)Bases: OcxProcessError
A package, registry, or reference does not exist (exit 79).
Covers both things ocx can fail to find: the identifier a call named, and
the project file a --project pointed at.
OcxErrorclass#
ocx_sdk._errorsView sourceclass OcxError(Exception)Bases: Exception
Base class for every error raised by ocx-sdk.
Subclasses set _hint: the next step a caller can actually take. It is
appended to the message of every error in the hierarchy.
Errors cross process boundaries intact — a ProcessPoolExecutor worker or
a pytest-xdist node has to be able to hand one back.