Skip to content
ocx
install

OcxExecutionError, OcxNotFoundError

OcxExecutionErrorclass#

Re-exported from ocx_sdk._errorsView source
class OcxExecutionError(argv: Sequence[str], stderr: str = '')

Bases: OcxError

Base for failures an ocx process raised — non-zero exits and timeouts.

except OcxExecutionError is the catch shape a caller usually wants: it covers both a process that failed and one that never finished.

Attributes

NameTypeDescription
argvtuple[str, ...]The argv that ran, with secrets already redacted by _process.
stderrstrCaptured stderr in full; the message shows only its tail.

argvattributeinstance attribute#

argv: tuple[str, ...] = tuple(argv)

stderrattributeinstance attribute#

stderr: str = stderr

OcxNotFoundErrorclass#

Re-exported from ocx_sdk._errorsView source
class OcxNotFoundError(OcxError)

Bases: OcxError

No ocx binary could be discovered.