mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 10:34:20 +01:00
27 lines
463 B
Python
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."
|