1 2 3 4 5 6 7 8 9 10 11
use thiserror::Error; #[derive(Debug, Error)] pub enum IoError { #[error("model has no objective")] NoObjective, #[error("nonlinear nodes are not representable in this format")] Nonlinear, #[error("io: {0}")] Io(#[from] std::io::Error), }