khard.exceptions
================

.. py:module:: khard.exceptions

.. autoapi-nested-parse::

   Custom exceptions for khard



Exceptions
----------

.. autoapisummary::

   khard.exceptions.Cancelled
   khard.exceptions.AddressBookParseError
   khard.exceptions.AddressBookNameError
   khard.exceptions.ConfigError


Module Contents
---------------

.. py:exception:: Cancelled(message: str = 'Canceled', code: int = 1)

   Bases: :py:obj:`Exception`


   An exception indicating that the user canceled some operation or
   some backend operation failed


   .. py:attribute:: code
      :value: 1



.. py:exception:: AddressBookParseError(filename: str, abook: str, reason: Exception)

   Bases: :py:obj:`Exception`


   Indicate an error while parsing data from an address book backend.


   .. py:attribute:: filename


   .. py:attribute:: abook


   .. py:attribute:: reason


   .. py:method:: __str__() -> str

      Return str(self).



.. py:exception:: AddressBookNameError

   Bases: :py:obj:`Exception`


   Indicate an error with an address book name.


.. py:exception:: ConfigError

   Bases: :py:obj:`Exception`


   Errors during config file parsing


