1234567891011121314151617181920212223242526 |
- use thiserror::Error;
- #[derive(Debug, Error)]
- pub enum Error {
-
- #[error("Unknown invoice amount")]
- UnknownInvoiceAmount,
-
- #[error("Unknown invoice")]
- UnknownInvoice,
-
- #[error(transparent)]
- StrikeRs(#[from] strike_rs::Error),
-
- #[error(transparent)]
- Anyhow(#[from] anyhow::Error),
- }
- impl From<Error> for cdk::cdk_lightning::Error {
- fn from(e: Error) -> Self {
- Self::Lightning(Box::new(e))
- }
- }
|