rustilities/
error.rs

1// SPDX-License-Identifier: GPL-3.0
2
3use thiserror::Error;
4
5/// Represents the various errors that can occur in the crate.
6#[derive(Error, Debug)]
7pub enum Error {
8	#[error("IO error: {0}")]
9	IO(#[from] std::io::Error),
10	#[error("{0}")]
11	Descriptive(String),
12	#[cfg(feature = "manifest")]
13	#[cfg_attr(docsrs, doc(cfg(feature = "manifest")))]
14	#[error("toml_edit error: {0}")]
15	TomlEdit(#[from] toml_edit::TomlError),
16}