Skip to content
ocx
install

ExitCode to OcxError

ExitCodeclass#

Re-exported from ocx_sdk._errorsView source

UNAVAILABLEattributeclass attributeinstance attribute#

UNAVAILABLE = 69

UNSUPPORTED_KEY_BACKENDattributeclass attributeinstance attribute#

UNSUPPORTED_KEY_BACKEND = 85

USAGEattributeclass attributeinstance attribute#

USAGE = 64

ForgeCapabilityUnavailableErrorclass#

Re-exported from ocx_sdk._errorsView source
class 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#

Re-exported from ocx_sdk._errorsView source
class IoError(OcxProcessError)

Bases: OcxProcessError

A filesystem or network I/O operation failed (exit 74).

NotFoundErrorclass#

Re-exported from ocx_sdk._errorsView source
class 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#

Re-exported from ocx_sdk._errorsView source
class 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.