D4654: error: introduce StorageError

Yuya Nishihara yuya at tcha.org
Sun Sep 23 06:11:04 EDT 2018


> -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.


More information about the Mercurial-devel mailing list