Skip to content

Commit 005a918

Browse files
committed
Oops forgot to commit a file
1 parent f744143 commit 005a918

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmd2/exceptions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# coding=utf-8
2+
"""Custom exceptions for cmd2. These are NOT part of the public API and are intended for internal use only."""
3+
4+
5+
class EmbeddedConsoleExit(SystemExit):
6+
"""Custom exception class for use with the py command."""
7+
pass
8+
9+
10+
class EmptyStatement(Exception):
11+
"""Custom exception class for handling behavior when the user just presses <Enter>."""
12+
pass

0 commit comments

Comments
 (0)