diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-19 00:09:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 00:09:52 -0500 |
commit | 566f38c158e6e758a75ab7d9a020fa9e798d194a (patch) | |
tree | 19e80cf50968d7ae7573de1a8e6418a1f80b24bc /cmd2/exceptions.py | |
parent | 970c5fc42c69c1c03640c979df341e85e3c38848 (diff) | |
parent | eecb0ac77e75ae5c6917a6768d8a62cb5789649b (diff) | |
download | cmd2-git-566f38c158e6e758a75ab7d9a020fa9e798d194a.tar.gz |
Merge pull request #893 from python-cmd2/EmptyStatement_visibility
Empty statement visibility adjustment
Diffstat (limited to 'cmd2/exceptions.py')
-rw-r--r-- | cmd2/exceptions.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd2/exceptions.py b/cmd2/exceptions.py new file mode 100644 index 00000000..747e2368 --- /dev/null +++ b/cmd2/exceptions.py @@ -0,0 +1,12 @@ +# coding=utf-8 +"""Custom exceptions for cmd2. These are NOT part of the public API and are intended for internal use only.""" + + +class EmbeddedConsoleExit(SystemExit): + """Custom exception class for use with the py command.""" + pass + + +class EmptyStatement(Exception): + """Custom exception class for handling behavior when the user just presses <Enter>.""" + pass |