Skip to content

Commit 282cf7f

Browse files
DanielNoordjspaezp
andcommitted
Create UnstableResultError
Co-authored-by: J. Sebastian Paez <[email protected]>
1 parent 98cdd94 commit 282cf7f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pydocstringformatter/_utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
ParsingError,
33
PydocstringFormatterError,
44
TomlParsingError,
5+
UnstableResultError,
56
)
67
from pydocstringformatter._utils.file_diference import compare_formatters, generate_diff
78
from pydocstringformatter._utils.find_docstrings import is_docstring
@@ -16,6 +17,7 @@
1617
"ParsingError",
1718
"PydocstringFormatterError",
1819
"TomlParsingError",
20+
"UnstableResultError",
1921
"print_to_console",
2022
"sys_exit",
2123
]

pydocstringformatter/_utils/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ class UnrecognizedOption(PydocstringFormatterError):
1212

1313
class TomlParsingError(PydocstringFormatterError):
1414
"""Raised when there are errors with the parsing of the toml file."""
15+
16+
17+
class UnstableResultError(PydocstringFormatterError):
18+
"""Raised when the result of the formatting is unstable."""

0 commit comments

Comments
 (0)