@@ -89,6 +89,8 @@ pub enum ServiceError {
8989 InvalidDisputeStatus ,
9090 InvalidPayload ,
9191 UnexpectedError ( String ) ,
92+ EnvVarError ( String ) ,
93+ IOError ( String ) ,
9294}
9395
9496#[ derive( Debug , PartialEq , Eq ) ]
@@ -143,30 +145,8 @@ impl fmt::Display for ServiceError {
143145 ServiceError :: InvalidDisputeStatus => write ! ( f, "Invalid dispute status" ) ,
144146 ServiceError :: InvalidPayload => write ! ( f, "Invalid payload" ) ,
145147 ServiceError :: UnexpectedError ( e) => write ! ( f, "Unexpected error: {}" , e) ,
148+ ServiceError :: EnvVarError ( e) => write ! ( f, "Environment variable error: {}" , e) ,
149+ ServiceError :: IOError ( e) => write ! ( f, "IO error: {}" , e) ,
146150 }
147151 }
148152}
149-
150- // impl From<lightning_invoice::Bolt11ParseError> for MostroError {
151- // fn from(_: lightning_invoice::Bolt11ParseError) -> Self {
152- // MostroError::ParsingInvoiceError
153- // }
154- // }
155-
156- // impl From<lightning_invoice::ParseOrSemanticError> for MostroError {
157- // fn from(_: lightning_invoice::ParseOrSemanticError) -> Self {
158- // MostroError::ParsingInvoiceError
159- // }
160- // }
161-
162- // impl From<std::num::ParseIntError> for MostroError {
163- // fn from(_: std::num::ParseIntError) -> Self {
164- // MostroError::ParsingNumberError
165- // }
166- // }
167-
168- // impl From<reqwest::Error> for MostroError {
169- // fn from(_: reqwest::Error) -> Self {
170- // MostroError::NoAPIResponse
171- // }
172- // }
0 commit comments