Skip to content

DeliveryError

Part of Exceptions in the Python API reference.

Related guidance: reference/exceptions, how-to/troubleshooting.

Runnable examples: preflight.py.

from picogrid_ecn_client import DeliveryError

Report a definite or uncertain mutation delivery phase without implying retry safety.

class DeliveryError(ECNClientError): ...

Source · exceptions.py

Hierarchy: ECNClientError → DeliveryError

Initialize one secret-safe mutation delivery failure.

def __init__(
message: object,
*,
delivery_phase: DeliveryPhase,
operation: str,
task_id: str | None = None,
operation_id: UUID | None = None,
code: str | None = None,
status_code: int | None = None,
details: Mapping[str, object] | None = None,
secrets: tuple[str, ...] = (),
) -> None
NameTypeDefaultDescription
messageobjectFailure message to redact and expose.
delivery_phaseDeliveryPhaseStrongest safe delivery fact established.
operationstrStable public operation name.
task_idstr | NoneNoneGenerated task correlation identifier, when applicable.
operation_idUUID | NoneNoneGenerated publication operation identifier, when applicable.
codestr | NoneNoneOptional stable error-code override.
status_codeint | NoneNoneOptional status value associated with the failure.
detailsMapping[str, object] | NoneNoneOptional additional secret-safe structured details.
secretstuple[str, …]()Additional exact values to remove from public text.
ExceptionDescription
ValueErrorIf a supplied task identifier is empty or exceeds its bound.

Source · exceptions.py

Strongest safe delivery fact established before failure.

delivery_phase

Source · exceptions.py

Generated task correlation identifier, when applicable.

task_id

Source · exceptions.py

Generated publication operation identifier, when applicable.

operation_id

Source · exceptions.py

Version 0.2.0 · branch main