Files
nutshell/cashu/core/errors.py
callebtc 53a8387a0d refactor
2023-01-11 02:57:59 +01:00

22 lines
342 B
Python

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