Files @ 4fce6b4feaa7
Branch filter:

Location: NPO-Accounting/experimental-accounting-api/accounting/exceptions.py - annotation

Joar Wandborg
[tests] Added bin/runtests
# Part of accounting-api project:
# https://gitorious.org/conservancy/accounting-api
# License: AGPLv3-or-later

class AccountingException(Exception):
    '''
    Used as a base for exceptions that are returned to the caller via the
    jsonify_exceptions decorator
    '''
    def __init__(self, message, **kw):
        self.message = message
        for key, value in kw.items():
            setattr(self, key, value)


class TransactionNotFound(AccountingException):
    pass