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 classSendError.BlindedPathAdvanceFailedWe 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 classSendError.BufferFullOur next-hop peer's buffer was full or our total outbound buffer was full.static classSendError.GetNodeIdFailedFailed to retrieve our node id from the provided [`NodeSigner`].static classSendError.InvalidFirstHopOur next-hop peer was offline or does not support onion message forwarding.static classSendError.InvalidMessageOnion message contents must have a TLV type >= 64.static classSendError.Secp256k1Errored computing onion message packet keys.static classSendError.TooBigPacketBecause 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 classSendError.TooFewBlindedHopsThe 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 SendErrorblinded_path_advance_failed()Utility method to constructs a new BlindedPathAdvanceFailed-variant SendErrorstatic SendErrorbuffer_full()Utility method to constructs a new BufferFull-variant SendErrorSendErrorclone()Creates a copy of the SendErrorbooleaneq(SendError b)Checks if two SendErrors contain equal inner contents.booleanequals(Object o)protected voidfinalize()static SendErrorget_node_id_failed()Utility method to constructs a new GetNodeIdFailed-variant SendErrorstatic SendErrorinvalid_first_hop()Utility method to constructs a new InvalidFirstHop-variant SendErrorstatic SendErrorinvalid_message()Utility method to constructs a new InvalidMessage-variant SendErrorstatic SendErrorsecp256k1(Secp256k1Error a)Utility method to constructs a new Secp256k1-variant SendErrorstatic SendErrortoo_big_packet()Utility method to constructs a new TooBigPacket-variant SendErrorstatic SendErrortoo_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.
-
-