We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c9a57 commit e98f749Copy full SHA for e98f749
payjoin/src/send/error.rs
@@ -305,7 +305,17 @@ impl ResponseError {
305
}
306
307
308
-impl std::error::Error for ResponseError {}
+impl std::error::Error for ResponseError {
309
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
310
+ use ResponseError::*;
311
+
312
+ match self {
313
+ WellKnown(error) => Some(error),
314
+ Validation(error) => Some(error),
315
+ Unrecognized { .. } => None,
316
+ }
317
318
+}
319
320
impl From<WellKnownError> for ResponseError {
321
fn from(value: WellKnownError) -> Self { Self::WellKnown(value) }
0 commit comments