# khard.exceptions

Custom exceptions for khard

## Exceptions

`Cancelled` | An exception indicating that the user canceled some operation or
`AddressBookParseError` | Indicate an error while parsing data from an address book backend.
`AddressBookNameError` | Indicate an error with an address book name.
`ConfigError` | Errors during config file parsing

## Module Contents

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

  Bases: `Exception`

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

  code = 1

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

  Bases: `Exception`

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

  filename
  abook
  reason
  __str__() → str

    Return str(self).

exception khard.exceptions.AddressBookNameError

  Bases: `Exception`

  Indicate an error with an address book name.

exception khard.exceptions.ConfigError

  Bases: `Exception`

  Errors during config file parsing