D4654: error: introduce StorageError
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Sun Sep 23 06:11:38 EDT 2018
yuja added a comment.
> -class RevlogError(Hint, Exception):
> +class StorageError(Hint, Exception):
> + """Raised when an error occurs in a storage layer.
> +
> + Usually subclassed by a storage-specific exception.
> + """
> + __bytes__ = _tobytes
> +
> +class RevlogError(StorageError):
>
> __bytes__ = _tobytes
Perhaps `LookupError` will have to be either reparented to `StorageError`
or detached from the storage-type error. Just a note. I think you would have
some plan.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4654
To: indygreg, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list