summaryrefslogtreecommitdiff
path: root/cmd2/exceptions.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-08-05 15:08:37 -0400
committeranselor <anselor@gmail.com>2020-08-06 16:01:19 -0400
commit62eccdac73d852d3ab9df06497bc8c9063e3d283 (patch)
tree2c7a02a8589270447d9ef611f0f6f170e5f0528f /cmd2/exceptions.py
parent2c99c0d9e7ddea1a93e97e3198aea01beca7c5d5 (diff)
downloadcmd2-git-62eccdac73d852d3ab9df06497bc8c9063e3d283.tar.gz
Verify that a completer function is defined in a CommandSet before
passing it a CommandSet instance. Search for a CommandSet instance that matches the completer's parent class type.` Resolves Issue #967 Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation
Diffstat (limited to 'cmd2/exceptions.py')
-rw-r--r--cmd2/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd2/exceptions.py b/cmd2/exceptions.py
index b928f293..d253985a 100644
--- a/cmd2/exceptions.py
+++ b/cmd2/exceptions.py
@@ -25,6 +25,10 @@ class Cmd2ArgparseError(SkipPostcommandHooks):
class CommandSetRegistrationError(Exception):
+ """
+ Exception that can be thrown when an error occurs while a CommandSet is being added or removed
+ from a cmd2 application.
+ """
pass
############################################################################################################