diff mercurial/error.py @ 45892:ac362d5a7893

errors: introduce CanceledError and use it in a few places This very similar to earlier patches (e.g. for `InputError`) and part of https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. Differential Revision: https://phab.mercurial-scm.org/D9339
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 22 Oct 2020 14:14:59 -0700
parents 527ce85c2e60
children 8cc9e7f762d6
line wrap: on
line diff
--- a/mercurial/error.py	Tue Nov 17 15:51:09 2020 -0800
+++ b/mercurial/error.py	Thu Oct 22 14:14:59 2020 -0700
@@ -195,6 +195,13 @@
     """
 
 
+class CanceledError(Abort):
+    """Indicates that the user canceled the operation.
+
+    Examples: Close commit editor with error status, quit chistedit.
+    """
+
+
 class HookLoadError(Abort):
     """raised when loading a hook fails, aborting an operation