starship/crates/starship-cache/src/errors.rs

18 lines
412 B
Rust

use std::io;
#[non_exhaustive]
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("cannot open cache file")]
OpenFile(#[source] io::Error),
#[error("cannot write cache file")]
WriteFile(#[source] io::Error),
#[error("cannot read binary metadata")]
ReadMetadata(#[source] io::Error),
#[error("unable to serialize cache")]
SerializeCache(#[source] toml::ser::Error),
}