use thiserror::Error;
#[derive(Debug, Error, Copy, Clone)]
pub enum KOSValueParseError {
#[error("EOF reached while parsing KOSValue")]
EOF,
#[error("Invalid KOSValue type: {0}")]
InvalidType(u8),
}
#[derive(Debug, Error, Copy, Clone)]
pub enum OpcodeParseError {
#[error("EOF reached while parsing opcode")]
EOF,
#[error("Invalid opcode: {0}")]
InvalidOpcode(u8),
}