Package org.ldk.structs
Class SendError
- java.lang.Object
-
- org.ldk.structs.SendError
-
- Direct Known Subclasses:
SendError.BlindedPathAdvanceFailed
,SendError.BufferFull
,SendError.GetNodeIdFailed
,SendError.InvalidFirstHop
,SendError.InvalidMessage
,SendError.Secp256k1
,SendError.TooBigPacket
,SendError.TooFewBlindedHops
public class SendError extends Object
Errors that may occur when [sending an onion message]. [sending an onion message]: OnionMessenger::send_onion_message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SendError.BlindedPathAdvanceFailed
We attempted to send to a blinded path where we are the introduction node, and failed to advance the blinded path to make the second hop the new introduction node.static class
SendError.BufferFull
Our next-hop peer's buffer was full or our total outbound buffer was full.static class
SendError.GetNodeIdFailed
Failed to retrieve our node id from the provided [`NodeSigner`].static class
SendError.InvalidFirstHop
Our next-hop peer was offline or does not support onion message forwarding.static class
SendError.InvalidMessage
Onion message contents must have a TLV type >= 64.static class
SendError.Secp256k1
Errored computing onion message packet keys.static class
SendError.TooBigPacket
Because implementations such as Eclair will drop onion messages where the message packet exceeds 32834 bytes, we refuse to send messages where the packet exceeds this size.static class
SendError.TooFewBlindedHops
The provided [`Destination`] was an invalid [`BlindedPath`], due to having fewer than two blinded hops.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SendError
blinded_path_advance_failed()
Utility method to constructs a new BlindedPathAdvanceFailed-variant SendErrorstatic SendError
buffer_full()
Utility method to constructs a new BufferFull-variant SendErrorSendError
clone()
Creates a copy of the SendErrorboolean
eq(SendError b)
Checks if two SendErrors contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
static SendError
get_node_id_failed()
Utility method to constructs a new GetNodeIdFailed-variant SendErrorstatic SendError
invalid_first_hop()
Utility method to constructs a new InvalidFirstHop-variant SendErrorstatic SendError
invalid_message()
Utility method to constructs a new InvalidMessage-variant SendErrorstatic SendError
secp256k1(Secp256k1Error a)
Utility method to constructs a new Secp256k1-variant SendErrorstatic SendError
too_big_packet()
Utility method to constructs a new TooBigPacket-variant SendErrorstatic SendError
too_few_blinded_hops()
Utility method to constructs a new TooFewBlindedHops-variant SendError
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
secp256k1
public static SendError secp256k1(Secp256k1Error a)
Utility method to constructs a new Secp256k1-variant SendError
-
too_big_packet
public static SendError too_big_packet()
Utility method to constructs a new TooBigPacket-variant SendError
-
too_few_blinded_hops
public static SendError too_few_blinded_hops()
Utility method to constructs a new TooFewBlindedHops-variant SendError
-
invalid_first_hop
public static SendError invalid_first_hop()
Utility method to constructs a new InvalidFirstHop-variant SendError
-
invalid_message
public static SendError invalid_message()
Utility method to constructs a new InvalidMessage-variant SendError
-
buffer_full
public static SendError buffer_full()
Utility method to constructs a new BufferFull-variant SendError
-
get_node_id_failed
public static SendError get_node_id_failed()
Utility method to constructs a new GetNodeIdFailed-variant SendError
-
blinded_path_advance_failed
public static SendError blinded_path_advance_failed()
Utility method to constructs a new BlindedPathAdvanceFailed-variant SendError
-
eq
public boolean eq(SendError b)
Checks if two SendErrors contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
-