1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rustyline::error::ReadlineError;
use thiserror::Error;

#[non_exhaustive]
#[derive(Error, Debug)]
pub enum ClackError {
	#[error("io error")]
	IoError(#[from] std::io::Error),
	#[error("operation cancelled")]
	Cancelled,
	#[error("readline error")]
	ReadlineError(#[from] ReadlineError),
	#[error("no options specified")]
	NoOptions,
}