Skip to content

OutcomeUnknownError

Part of Exceptions in the Python API reference.

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

Runnable examples: preflight.py.

from picogrid_ecn_client import OutcomeUnknownError

Report a mutation that may have reached the broker or downstream handler.

class OutcomeUnknownError(DeliveryError): ...

Source · exceptions.py

Hierarchy: ECNClientError → DeliveryError → OutcomeUnknownError

Initialize one delivery failure whose mutation outcome is unknown.

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_phaseDeliveryPhaseUncertain delivery phase established at failure.
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 delivery_phase is not an uncertainty phase.

Source · exceptions.py

Version 0.2.0 · branch main