-
-
Notifications
You must be signed in to change notification settings - Fork 581
Expand file tree
/
Copy path_errors.py
More file actions
19 lines (13 loc) · 626 Bytes
/
_errors.py
File metadata and controls
19 lines (13 loc) · 626 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""App-specific exceptions."""
class PreCommitTerraformBaseError(Exception):
"""Base exception for all the in-app errors."""
class PreCommitTerraformRuntimeError(
PreCommitTerraformBaseError,
RuntimeError,
):
"""An exception representing a runtime error condition."""
# N818 - The name mimics the built-in SystemExit and is meant to have exactly
# the same semantics. For this reason, it shouldn't have Error in the name to
# maintain resemblance.
class PreCommitTerraformExit(PreCommitTerraformBaseError, SystemExit): # noqa: N818
"""An exception for terminating execution from deep app layers."""