Source code for qpass.exceptions

# qpass: Frontend for pass (the standard unix password manager).
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: December 3, 2018
# URL: https://github.com/xolox/python-qpass

"""Custom exceptions raised by :mod:`qpass`."""

# Public identifiers that require documentation.
__all__ = ("EmptyPasswordStoreError", "MissingPasswordStoreError", "NoMatchingPasswordError", "PasswordStoreError")


[docs]class PasswordStoreError(Exception): """Base class for custom exceptions raised by :mod:`qpass`."""
[docs]class MissingPasswordStoreError(PasswordStoreError): """Raised when the password store directory doesn't exist."""
[docs]class EmptyPasswordStoreError(PasswordStoreError): """Raised when the password store is empty."""
[docs]class NoMatchingPasswordError(PasswordStoreError): """Raised when no matching password can be selected."""