Files
tiffwrite/src/error.rs
T
w.pomp 2fc0bf8c9f
PyTest / pytest (3.10) (push) Successful in 7m3s
PyTest / pytest (3.12) (push) Successful in 1m29s
PyTest / pytest (3.14) (push) Successful in 1m27s
- use tokio instead of os threads
- buffer writes
- also write in parallel
2026-05-08 18:55:07 +02:00

20 lines
567 B
Rust

use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error(transparent)]
IO(#[from] std::io::Error),
#[error(transparent)]
ColorCet(#[from] colorcet::ColorcetError),
#[error(transparent)]
Tokio(#[from] tokio::task::JoinError),
#[error("could not parse color: {0}")]
ColorParse(String),
#[error("could not covert ColorMap into LinearGradient")]
Conversion,
#[error("mutex was poisoned, this is a bug, please report it!")]
MutexPoisoned,
#[error("cannot express {0} as Rational32")]
Rational(f64),
}