From 005a918d785b7e619bf567e86536c7cbdc29a29e Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Tue, 18 Feb 2020 21:08:35 -0500 Subject: Oops forgot to commit a file --- cmd2/exceptions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cmd2/exceptions.py (limited to 'cmd2/exceptions.py') 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 .""" + pass -- cgit v1.2.1