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