@@ -115,6 +115,7 @@ impl From<payjoin::bitcoin::address::ParseError> for ReceiverBuilderError {
115115
116116/// Error parsing a Bitcoin address.
117117#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
118+ #[ uniffi:: export( Debug , Display ) ]
118119#[ error( "Invalid Bitcoin address: {msg}" ) ]
119120pub struct AddressParseError {
120121 msg : String ,
@@ -136,6 +137,7 @@ impl From<payjoin::bitcoin::address::ParseError> for AddressParseError {
136137/// 4. Provide errors according to BIP-78 JSON error specifications for return
137138/// after conversion into [`JsonReply`]
138139#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
140+ #[ uniffi:: export( Debug , Display ) ]
139141#[ error( transparent) ]
140142pub struct ProtocolError ( #[ from] receive:: ProtocolError ) ;
141143
@@ -149,6 +151,7 @@ pub struct ProtocolError(#[from] receive::ProtocolError);
149151/// }
150152/// ```
151153#[ derive( Debug , Clone , PartialEq , Eq , uniffi:: Object ) ]
154+ #[ uniffi:: export( Debug , Eq ) ]
152155pub struct JsonReply ( receive:: JsonReply ) ;
153156
154157impl From < JsonReply > for receive:: JsonReply {
@@ -165,11 +168,13 @@ impl From<ProtocolError> for JsonReply {
165168
166169/// Error that may occur during a v2 session typestate change
167170#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
171+ #[ uniffi:: export( Debug , Display ) ]
168172#[ error( transparent) ]
169173pub struct SessionError ( #[ from] receive:: v2:: SessionError ) ;
170174
171175/// Protocol error raised during output substitution.
172176#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
177+ #[ uniffi:: export( Debug , Display ) ]
173178#[ error( transparent) ]
174179pub struct OutputSubstitutionProtocolError ( #[ from] receive:: OutputSubstitutionError ) ;
175180
@@ -194,16 +199,19 @@ impl From<FfiValidationError> for OutputSubstitutionError {
194199
195200/// Error that may occur when coin selection fails.
196201#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
202+ #[ uniffi:: export( Debug , Display ) ]
197203#[ error( transparent) ]
198204pub struct SelectionError ( #[ from] receive:: SelectionError ) ;
199205
200206/// Error that may occur when input contribution fails.
201207#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
208+ #[ uniffi:: export( Debug , Display ) ]
202209#[ error( transparent) ]
203210pub struct InputContributionError ( #[ from] receive:: InputContributionError ) ;
204211
205212/// Error validating a PSBT Input
206213#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
214+ #[ uniffi:: export( Debug , Display ) ]
207215#[ error( transparent) ]
208216pub struct PsbtInputError ( #[ from] receive:: PsbtInputError ) ;
209217
@@ -233,6 +241,7 @@ impl From<FfiValidationError> for InputPairError {
233241
234242/// Error that may occur when a receiver event log is replayed
235243#[ derive( Debug , thiserror:: Error , uniffi:: Object ) ]
244+ #[ uniffi:: export( Debug , Display ) ]
236245#[ error( transparent) ]
237246pub struct ReceiverReplayError (
238247 #[ from] payjoin:: error:: ReplayError < receive:: v2:: ReceiveSession , receive:: v2:: SessionEvent > ,
0 commit comments