diff --git a/electrum/lnutil.py b/electrum/lnutil.py index 8a4878746..bba793321 100644 --- a/electrum/lnutil.py +++ b/electrum/lnutil.py @@ -362,6 +362,16 @@ class NoPathFound(PaymentFailure): def __str__(self): return _('No path found') + +class LNProtocolError(Exception): + """Raised in peer methods to trigger an error message.""" + + +class LNProtocolWarning(Exception): + """Raised in peer methods to trigger a warning message.""" + + + # TODO make some of these values configurable? REDEEM_AFTER_DOUBLE_SPENT_DELAY = 30