Skip to main content
GuideServerConfigure and deploy Tabsdata servers on your machine.TutorialsConfigure data integration workflows within a running Tabsdata server.Advanced TutorialsBuild end-to-end workflows between two specific systems.API ReferenceCLI ReferenceRelease Notes
Version: 2.0.0

ErrorCode

class
class ErrorCode

Bases: Enum

Categories: error

Abstract base for connector error-code enums.

Concrete subclasses declare variants whose values are ErrorDef instances. Call exception to render a template and raise the bound exception.

Examples

raise MysqlErrorCode.MYSQL_5.exception(
cause=sqlalchemy_err, uri=conn.uri,
)

Methods

method
message
def message(**kwargs: Any = {}) -> str

Render this code's message template without raising.

Parameters:

parameter
**kwargsAny

Substituted into the template; missing keys are left as {name} placeholders.

method
exception
def exception(cause: Exception | None = None, **kwargs: Any = {}) -> 'TabsdataException'

Build a TabsdataException for this code.

Parameters:

parameter
causeException | None

Underlying exception to chain via __cause__ (the framework also sets __suppress_context__ so the traceback reads as raise ... from cause).

parameter
**kwargsAny

Substituted into the message template; surplus keys are stashed on the exception's extra.

Returns:

The bound TabsdataException subclass instance, ready to