Changeset View
Changeset View
Standalone View
Standalone View
mercurial/error.py
Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Line(s) | if pycompat.ispy3: | ||||
def __str__(self): | def __str__(self): | ||||
# the output would be unreadable if the message was translated, | # the output would be unreadable if the message was translated, | ||||
# but do not replace it with encoding.strfromlocal(), which | # but do not replace it with encoding.strfromlocal(), which | ||||
# may raise another exception. | # may raise another exception. | ||||
return pycompat.sysstr(self.__bytes__()) | return pycompat.sysstr(self.__bytes__()) | ||||
class InputError(Abort): | |||||
"""Indicates that the user made an error in their input. | |||||
Examples: Invalid command, invalid flags, invalid revision. | |||||
""" | |||||
class HookLoadError(Abort): | class HookLoadError(Abort): | ||||
"""raised when loading a hook fails, aborting an operation | """raised when loading a hook fails, aborting an operation | ||||
Exists to allow more specialized catching.""" | Exists to allow more specialized catching.""" | ||||
class HookAbort(Abort): | class HookAbort(Abort): | ||||
"""raised when a validation hook fails, aborting an operation | """raised when a validation hook fails, aborting an operation | ||||
▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines |