Skip to main content
Version: 1.30.0 (latest)

dlt.common.exceptions

ExceptionTrace Objects​

class ExceptionTrace(TypedDict)

View source on GitHub

Exception trace. NOTE: we intend to change it with an extended line by line trace with code snippets

is_terminal​

Says if exception is terminal if happened to a job during load step

exception_attrs​

Public attributes of an exception deriving from DltException (not starting with _)

load_id​

Load id if found in exception attributes

pipeline_name​

Pipeline name if found in exception attributes or in the active pipeline (Container)

source_name​

Source name if found in exception attributes or in Container

resource_name​

Resource name if found in exception attributes

job_id​

Job id if found in exception attributes

DltException Objects​

class DltException(Exception)

View source on GitHub

__reduce__​

def __reduce__() -> Any

View source on GitHub

Enables exceptions with parametrized constructor to be pickled

attrs​

def attrs() -> Dict[str, Any]

View source on GitHub

Returns "public" attributes of the DltException

ValueErrorWithKnownValues Objects​

class ValueErrorWithKnownValues(ValueError)

View source on GitHub

Raise after receiving an invalid value and a set of valid values is known.

TypeErrorWithKnownTypes Objects​

class TypeErrorWithKnownTypes(TypeError)

View source on GitHub

Raise after receiving an invalid value and a set of valid types is known.

TerminalException Objects​

class TerminalException(BaseException)

View source on GitHub

Marks an exception that cannot be recovered from, should be mixed in into concrete exception class

TransientException Objects​

class TransientException(BaseException)

View source on GitHub

Marks an exception in operation that can be retried, should be mixed in into concrete exception class

TerminalValueError Objects​

class TerminalValueError(ValueError, TerminalException)

View source on GitHub

ValueError that is unrecoverable

SignalReceivedException Objects​

class SignalReceivedException(KeyboardInterrupt, TerminalException)

View source on GitHub

Raises when signal comes. Derives from BaseException to not be caught in regular exception handlers.

PipelineException Objects​

class PipelineException(DltException)

View source on GitHub

__init__​

def __init__(pipeline_name: str, msg: str) -> None

View source on GitHub

Base class for all pipeline exceptions. Should not be raised.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.