use miette::Diagnostic;
use thiserror::Error;
#[derive(Diagnostic, Error, Debug, PartialEq, Eq)]
pub enum MionControlProtocolError {
#[error(
"Unknown Code aka Packet Type for MION CONTROL: `{0}` received from the network (this may mean your CAT-DEV is doing something we didn't expect)"
)]
#[diagnostic(code(cat_dev::net::parse::mion::control::unknown_packet_type))]
UnknownCommand(u8),
}