Skip to content

Exceptions and Warnings

This section is dedicated present the exceptions and warnings related to file connectors.

hamana.connector.file.exceptions

CSVColumnNumberMismatchError

CSVColumnNumberMismatchError(description)

Bases: HamanaException

Error when the number of columns in the CSV file does not match the number of columns in the schema.

Source code in src/hamana/core/exceptions.py
5
6
def __init__(self, description):
    self.description = description

CSVDecodeRowError

CSVDecodeRowError(description)

Bases: HamanaException

Error when decoding a row from the CSV file.

Source code in src/hamana/core/exceptions.py
5
6
def __init__(self, description):
    self.description = description

hamana.connector.file.warnings

DialectMismatchWarning

DialectMismatchWarning(description)

Bases: HamanaWarning

Warning when the provided dialect does not match the inferred dialect.

Source code in src/hamana/core/warnings.py
5
6
def __init__(self, description):
    self.description = description