You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/error.rs
+30
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,18 @@ pub enum Error {
71
71
LiquiditySourceUnavailable,
72
72
/// The given operation failed due to the LSP's required opening fee being too high.
73
73
LiquidityFeeTooHigh,
74
+
/// Failed to access payjoin sender object.
75
+
PayjoinSenderUnavailable,
76
+
/// Payjoin URI network mismatch.
77
+
PayjoinUriNetworkMismatch,
78
+
/// Amount is neither user-provided nor defined in the URI.
79
+
PayjoinRequestMissingAmount,
80
+
/// Failed to build a payjoin request.
81
+
PayjoinRequestCreationFailed,
82
+
/// Payjoin response processing failed.
83
+
PayjoinResponseProcessingFailed,
84
+
/// Payjoin request timed out.
85
+
PayjoinRequestTimeout,
74
86
}
75
87
76
88
impl fmt::DisplayforError{
@@ -122,6 +134,24 @@ impl fmt::Display for Error {
122
134
Self::LiquidityFeeTooHigh => {
123
135
write!(f,"The given operation failed due to the LSP's required opening fee being too high.")
124
136
},
137
+
Self::PayjoinSenderUnavailable => {
138
+
write!(f,"Failed to access payjoin sender object. Make sure you have enabled Payjoin sending support.")
139
+
},
140
+
Self::PayjoinRequestMissingAmount => {
141
+
write!(f,"Amount is neither user-provided nor defined in the URI.")
142
+
},
143
+
Self::PayjoinRequestCreationFailed => {
144
+
write!(f,"Failed construct a payjoin request. Make sure the provided URI is valid and the configured Payjoin relay is available.")
145
+
},
146
+
Self::PayjoinUriNetworkMismatch => {
147
+
write!(f,"The Provided Payjoin URI does not match the node network.")
148
+
},
149
+
Self::PayjoinResponseProcessingFailed => {
150
+
write!(f,"Payjoin receiver responded to our request with an invalid response that was ignored. Notice they can still broadcast the original PSBT we shared with them")
151
+
},
152
+
Self::PayjoinRequestTimeout => {
153
+
write!(f,"Payjoin receiver did not respond to our request within the timeout period. Notice they can still broadcast the original PSBT we shared with them")
0 commit comments