Package org.ldk.structs
Class ErrorAction
- java.lang.Object
-
- org.ldk.structs.ErrorAction
-
- Direct Known Subclasses:
ErrorAction.DisconnectPeer,ErrorAction.IgnoreAndLog,ErrorAction.IgnoreDuplicateGossip,ErrorAction.IgnoreError,ErrorAction.SendErrorMessage,ErrorAction.SendWarningMessage
public class ErrorAction extends Object
Used to put an error message in a LightningError
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorAction.DisconnectPeerThe peer took some action which made us think they were useless.static classErrorAction.IgnoreAndLogThe peer did something harmless that we weren't able to meaningfully process.static classErrorAction.IgnoreDuplicateGossipThe peer provided us with a gossip message which we'd already seen.static classErrorAction.IgnoreErrorThe peer did something harmless that we weren't able to process, just log and ignorestatic classErrorAction.SendErrorMessageThe peer did something incorrect.static classErrorAction.SendWarningMessageThe peer did something incorrect.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorActionclone()Creates a copy of the ErrorActionstatic ErrorActiondisconnect_peer(ErrorMessage msg)Utility method to constructs a new DisconnectPeer-variant ErrorActionprotected voidfinalize()static ErrorActionignore_and_log(Level a)Utility method to constructs a new IgnoreAndLog-variant ErrorActionstatic ErrorActionignore_duplicate_gossip()Utility method to constructs a new IgnoreDuplicateGossip-variant ErrorActionstatic ErrorActionignore_error()Utility method to constructs a new IgnoreError-variant ErrorActionstatic ErrorActionsend_error_message(ErrorMessage msg)Utility method to constructs a new SendErrorMessage-variant ErrorActionstatic ErrorActionsend_warning_message(WarningMessage msg, Level log_level)Utility method to constructs a new SendWarningMessage-variant ErrorAction
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public ErrorAction clone()
Creates a copy of the ErrorAction
-
disconnect_peer
public static ErrorAction disconnect_peer(ErrorMessage msg)
Utility method to constructs a new DisconnectPeer-variant ErrorAction
-
ignore_error
public static ErrorAction ignore_error()
Utility method to constructs a new IgnoreError-variant ErrorAction
-
ignore_and_log
public static ErrorAction ignore_and_log(Level a)
Utility method to constructs a new IgnoreAndLog-variant ErrorAction
-
ignore_duplicate_gossip
public static ErrorAction ignore_duplicate_gossip()
Utility method to constructs a new IgnoreDuplicateGossip-variant ErrorAction
-
send_error_message
public static ErrorAction send_error_message(ErrorMessage msg)
Utility method to constructs a new SendErrorMessage-variant ErrorAction
-
send_warning_message
public static ErrorAction send_warning_message(WarningMessage msg, Level log_level)
Utility method to constructs a new SendWarningMessage-variant ErrorAction
-
-