Skip to content

Documentation for ToMeDa

tomeda.file_exception

FileHandler Exceptions for Tomeda.

TomedaFileCreateError

TomedaFileCreateError(path: Path, *args: object)

Bases: TomedaFileError

Exception for TomedaFileHandler if creating file fails.

Source code in tomeda/file_exception.py
62
63
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileDeleteError

TomedaFileDeleteError(path: Path, *args: object)

Bases: TomedaFileError

Exception for TomedaFileHandler if deleting file fails.

Source code in tomeda/file_exception.py
69
70
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileDirectoryCreateError

TomedaFileDirectoryCreateError(path: Path, *args: object)

Bases: TomedaFileError

Exception for TomedaFileHandler if creating directory fails.

Source code in tomeda/file_exception.py
83
84
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileEncodingError

TomedaFileEncodingError(path: Path, *args: object)

Bases: TomedaFileError

Exception for TomedaFileHandler if encoding file fails.

Source code in tomeda/file_exception.py
76
77
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileError

TomedaFileError(path: Path, *args: object)

Bases: TomedaException

Base exception for TomedaFileHandler.

Source code in tomeda/file_exception.py
12
13
14
def __init__(self, path: Path, *args: object) -> None:
    self.path = path
    super().__init__(args)

path instance-attribute

path = path

TomedaFileExistsError

TomedaFileExistsError(path: Path, *args: object)

Bases: TomedaFileError

Exception for TomedaFileHandler if file exists.

Source code in tomeda/file_exception.py
55
56
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileIOError

TomedaFileIOError(path: Path, *args: object)

Bases: TomedaFileError

Exception for FileHandler if file or directory IO fails.

Source code in tomeda/file_exception.py
27
28
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileNotReadableError

TomedaFileNotReadableError(path: Path, *args: object)

Bases: TomedaFileIOError

Exception for TomedaFileHandler if file is not readable.

Source code in tomeda/file_exception.py
34
35
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileNotWritableError

TomedaFileNotWritableError(path: Path, *args: object)

Bases: TomedaFileIOError

Exception for TomedaFileHandler if file is not writable.

Source code in tomeda/file_exception.py
41
42
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFilePermissionError

TomedaFilePermissionError(path: Path, *args: object)

Bases: TomedaFileError

Exception for TomedaFileHandler if file or directory permission fails.

Source code in tomeda/file_exception.py
48
49
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)

TomedaFileValueError

TomedaFileValueError(path: Path, *args: object)

Bases: TomedaFileError

Exception for TomedaFileHandler if value is not valid.

Source code in tomeda/file_exception.py
20
21
def __init__(self, path: Path, *args: object) -> None:
    super().__init__(path, args)