summaryrefslogtreecommitdiff
path: root/cmd2/exceptions.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-04-15 19:18:30 -0400
committerGitHub <noreply@github.com>2020-04-15 19:18:30 -0400
commit85bb29b7edfc6485556f398ddb192c16d1509856 (patch)
treebc4beaf99dcb0c49c9d836135ae2954ebd48dd15 /cmd2/exceptions.py
parentc4fbd8fa618b5c48cc38ac5c262d3c1ec53ce9af (diff)
parentb29a2bde32b5f59c29df52809d306df06aadfa9e (diff)
downloadcmd2-git-85bb29b7edfc6485556f398ddb192c16d1509856.tar.gz
Merge pull request #919 from python-cmd2/exception_handling
Exception handling
Diffstat (limited to 'cmd2/exceptions.py')
-rw-r--r--cmd2/exceptions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2/exceptions.py b/cmd2/exceptions.py
index 15787177..635192e1 100644
--- a/cmd2/exceptions.py
+++ b/cmd2/exceptions.py
@@ -24,3 +24,8 @@ class EmbeddedConsoleExit(SystemExit):
class EmptyStatement(Exception):
"""Custom exception class for handling behavior when the user just presses <Enter>."""
pass
+
+
+class RedirectionError(Exception):
+ """Custom exception class for when redirecting or piping output fails"""
+ pass