Exceptions
docstring_format_checker.utils.exceptions
🔗
Summary
This module defines custom exceptions for handling various error scenarios
DocstringError
🔗
Bases: Exception
Summary
Exception raised when a docstring validation error occurs.
Source code in src/docstring_format_checker/utils/exceptions.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
__init__
🔗
__init__(
message: str,
file_path: str,
line_number: int,
item_name: str,
item_type: str,
) -> None
Summary
Initialize a DocstringError.
Source code in src/docstring_format_checker/utils/exceptions.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | |
InvalidConfigError
🔗
Bases: Exception
Summary
Exception raised for invalid configuration errors.
Source code in src/docstring_format_checker/utils/exceptions.py
61 62 63 64 65 66 67 | |
InvalidConfigError_DuplicateOrderValues
🔗
Bases: Exception
Summary
Exception raised for duplicate order values in configuration.
Source code in src/docstring_format_checker/utils/exceptions.py
70 71 72 73 74 75 76 | |
InvalidTypeValuesError
🔗
Bases: Exception
Summary
Exception raised for invalid type values in configuration.
Source code in src/docstring_format_checker/utils/exceptions.py
79 80 81 82 83 84 85 | |
InvalidFileError
🔗
Bases: OSError
Summary
Exception raised for invalid file errors.
Source code in src/docstring_format_checker/utils/exceptions.py
88 89 90 91 92 93 94 | |
DirectoryNotFoundError
🔗
Bases: OSError
Summary
Exception raised for directory not found errors.
Source code in src/docstring_format_checker/utils/exceptions.py
97 98 99 100 101 102 103 | |