Skip to content

Commit 39b88cd

Browse files
[TESTING] new exceptions file in tests (- WIP #157 -).
New file tests/exceptions.py: - initial implementation of `CommandExecutionError`
1 parent e9afad1 commit 39b88cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/exceptions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# header placeholder
2+
3+
__module__ = "tests.exceptions"
4+
5+
class CommandExecutionError(RuntimeError):
6+
def __init__(self, message, exit_code, *args, **kwargs):
7+
super().__init__(message, *args, **kwargs)
8+
self.exit_code = exit_code

0 commit comments

Comments
 (0)