summaryrefslogtreecommitdiff
path: root/cmd2/exceptions.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-18 21:08:35 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-02-18 21:08:35 -0500
commit005a918d785b7e619bf567e86536c7cbdc29a29e (patch)
tree89ff2b87440d1dd457668c3bb79a74a395de469c /cmd2/exceptions.py
parentf7441431697e4ba94202a1484721ae8acf3a4ab7 (diff)
downloadcmd2-git-005a918d785b7e619bf567e86536c7cbdc29a29e.tar.gz
Oops forgot to commit a file
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