Package org.ldk.structs
Class LightningError
- java.lang.Object
-
- org.ldk.structs.LightningError
-
public class LightningError extends Object
An Err type for failure to process messages.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LightningError
clone()
Creates a copy of the LightningErrorprotected void
finalize()
ErrorAction
get_action()
The action which should be taken against the offending peer.String
get_err()
A human-readable message describing the errorstatic LightningError
of(String err_arg, ErrorAction action_arg)
Constructs a new LightningError given each fieldvoid
set_action(ErrorAction val)
The action which should be taken against the offending peer.void
set_err(String val)
A human-readable message describing the error
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_err
public String get_err()
A human-readable message describing the error
-
set_err
public void set_err(String val)
A human-readable message describing the error
-
get_action
public ErrorAction get_action()
The action which should be taken against the offending peer.
-
set_action
public void set_action(ErrorAction val)
The action which should be taken against the offending peer.
-
of
public static LightningError of(String err_arg, ErrorAction action_arg)
Constructs a new LightningError given each field
-
clone
public LightningError clone()
Creates a copy of the LightningError
-
-