This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
barkshark-web/barkshark_web/exceptions.py

16 lines
508 B
Python

class NoAccountsError(Exception):
'Raise when doing an action that requires a fediverse account, but none exist'
class AccountNotFoundError(Exception):
'Raise when a specific account is not found'
class BitwardenApiError(Exception):
'Raise when a Bitwarden command fails'
class NoPasswordError(Exception):
'Raise when there is not result when fetching a single password row'
def __init__(self, item_id):
Exception.__init__(self, f'No row for password with ID: {item_id}')
self.item_id = item_id