Skip to main content
Version: Next

Errors

Experimental — breaking changes may land in any release

Pin your version and read the changelog before upgrading.

All SDK errors derive from arkflow.ArkFlowError:

ExceptionRaised whenTypical recovery
ConfigErrorInvalid component config, a feature-gated type on this build, an unusable state_path, a pipeline without a source or sink, to_yaml on an in-memory pipeline, dict ingestion inference failures.Fix the configuration or keyword arguments; rebuild with the named feature if one is missing.
ExecutionErrorRuntime/processing failures — captured Rust panics, UDF exceptions (traceback included), engine processing errors.Inspect the traceback; fix the UDF or the data. The interpreter never dies.
ConnectorErrorConnection/authentication failures — broker down, bad credentials, TLS rejection.Retry with backoff for transient failures; rotate credentials or fix TLS for persistent ones.
import arkflow
from arkflow import ArkFlowError, ConfigError, ConnectorError, ExecutionError

try:
flow.run()
except ConfigError as error:
... # bad configuration — do not retry unchanged
except ConnectorError as error:
... # connection/auth — retry with backoff or fix the endpoint
except ExecutionError as error:
... # processing failure — inspect the embedded traceback
except ArkFlowError as error:
... # fallback for new error kinds

Where each error comes from​

  • Builder calls validate eagerly where possible; most configuration mistakes surface as ConfigError at the first execution primitive rather than at construction.
  • UDF exceptions are captured and re-raised as ExecutionError with the Python traceback text; a panicking Rust path becomes the same exception — the process and interpreter survive either way.
  • Connection failures during a running pipeline surface as ConnectorError; the durability contract decides what replays on the next run (see state and recovery).

Design rules​

  • The Python interpreter never dies from an engine error: panics and UDF tracebacks are captured at the boundary.
  • Error messages name the offending key, column, or feature; they never embed secret values resolved from references.
  • Re-entrancy (running a pipeline from inside its own UDF) is an ExecutionError.