Files
nutshell/cashu/core/errors.py
callebtc 9f1e180274 file
2022-10-09 10:31:10 +02:00

27 lines
463 B
Python

from pydantic import BaseModel
class CashuError(BaseModel):
code = "000"
error = "CashuError"
# class CashuError(Exception, BaseModel):
# code = "000"
# error = "CashuError"
# class MintException(CashuError):
# code = 100
# error = "Mint"
# class LightningException(MintException):
# code = 200
# error = "Lightning"
# class InvoiceNotPaidException(LightningException):
# code = 201
# error = "invoice not paid."