summaryrefslogtreecommitdiff
path: root/docs/features/hooks.rst
diff options
context:
space:
mode:
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
--------------------------