mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-22 19:34:18 +01:00
Add LightningPaymentFailedError exception (#706)
* add error code * fix test
This commit is contained in:
@@ -153,6 +153,14 @@ class QuoteNotPaidError(CashuError):
|
||||
super().__init__(self.detail, code=self.code)
|
||||
|
||||
|
||||
class LightningPaymentFailedError(CashuError):
|
||||
detail = "Lightning payment failed"
|
||||
code = 20004
|
||||
|
||||
def __init__(self, detail: Optional[str] = None):
|
||||
super().__init__(detail or self.detail, code=self.code)
|
||||
|
||||
|
||||
class QuoteSignatureInvalidError(CashuError):
|
||||
detail = "Signature for mint request invalid"
|
||||
code = 20008
|
||||
|
||||
Reference in New Issue
Block a user