summaryrefslogtreecommitdiff
path: root/docs/features/hooks.rst
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-05-29 17:43:02 -0400
committerGitHub <noreply@github.com>2020-05-29 17:43:02 -0400
commit8d9405a1fcc2169aa039172a8e2891b839a59e6c (patch)
tree53d94a01e7421f8ffba8c8df3ef640c16413b008 /docs/features/hooks.rst
parentd4653e6fccf0bc15d04075110769c11befb22819 (diff)
parent9b91116ec523f1bb27ae8c353a2a7a1dc7975888 (diff)
downloadcmd2-git-8d9405a1fcc2169aa039172a8e2891b839a59e6c.tar.gz
Merge pull request #937 from python-cmd2/exceptions
Exception handling
Diffstat (limited to 'docs/features/hooks.rst')
-rw-r--r--docs/features/hooks.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/features/hooks.rst b/docs/features/hooks.rst
index fec8e258..4c615586 100644
--- a/docs/features/hooks.rst
+++ b/docs/features/hooks.rst
@@ -291,6 +291,12 @@ blindly returns ``False``, a prior hook's requst to exit the application will
not be honored. It's best to return the value you were passed unless you have a
compelling reason to do otherwise.
+To purposefully and silently skip postcommand hooks, commands can raise any of
+of the following exceptions.
+
+- :attr:`cmd2.exceptions.SkipPostcommandHooks`
+- :attr:`cmd2.exceptions.Cmd2ArgparseError`
+
Command Finalization Hooks
--------------------------