2021-11-21 22:58:16 -05:00
|
|
|
//! Error handling.
|
|
|
|
|
|
|
|
use std::result;
|
|
|
|
use thiserror::Error;
|
|
|
|
|
|
|
|
pub type Result<T, E = Error> = result::Result<T, E>;
|
|
|
|
|
|
|
|
#[derive(Error, Debug)]
|
2021-11-23 11:29:53 -05:00
|
|
|
pub enum Error {
|
|
|
|
#[error("command from client not recognized")]
|
|
|
|
CommandNotFound,
|
|
|
|
}
|