summaryrefslogtreecommitdiff
path: root/cmd2/exceptions.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-19 00:09:52 -0500
committerGitHub <noreply@github.com>2020-02-19 00:09:52 -0500
commit566f38c158e6e758a75ab7d9a020fa9e798d194a (patch)
tree19e80cf50968d7ae7573de1a8e6418a1f80b24bc /cmd2/exceptions.py
parent970c5fc42c69c1c03640c979df341e85e3c38848 (diff)
parenteecb0ac77e75ae5c6917a6768d8a62cb5789649b (diff)
downloadcmd2-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.py12
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