Skip to content

exceptions

plantdb.commons.fsdb.exceptions Link

FileNoFileNameError Link

Bases: Exception

No 'file' entry could be found for this file.

FileNoIDError Link

Bases: Exception

No 'id' entry could be found for this file.

FilesetNoIDError Link

Bases: Exception

No 'id' entry could be found for this fileset.

FilesetNotFoundError Link

FilesetNotFoundError(scan, fs_id)

Bases: Exception

Could not find the fileset directory.

Source code in plantdb/commons/fsdb/exceptions.py
17
18
def __init__(self, scan, fs_id: str):
    super().__init__(f"Unknown fileset id '{fs_id}' in scan '{scan.id}'!")

ScanNotFoundError Link

ScanNotFoundError(db, scan_id)

Bases: Exception

Could not find the scan directory.

Source code in plantdb/commons/fsdb/exceptions.py
11
12
def __init__(self, db, scan_id: str):
    super().__init__(f"Unknown scan id '{scan_id}' in database '{db.path()}'!")