15 lines
No EOL
300 B
Rust
15 lines
No EOL
300 B
Rust
use thiserror::Error;
|
|
|
|
pub type Result<T> = std::result::Result<T, self::Error>;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum Error {
|
|
#[error("Unhandled error: {0}")]
|
|
Static(&'static str),
|
|
|
|
#[error("Unhandled error: {0}")]
|
|
Generic(String),
|
|
|
|
#[error(transparent)]
|
|
Docker(#[from] bollard::errors::Error),
|
|
} |