rill_osc/error.rs
1use std::io;
2
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum Error {
7 #[error("OSC parse error: {0}")]
8 Parse(String),
9
10 #[error("I/O error: {0}")]
11 Io(#[from] io::Error),
12
13 #[error("invalid OSC packet")]
14 InvalidPacket,
15
16 #[error("type mismatch: expected {expected}, got {actual}")]
17 TypeMismatch { expected: String, actual: String },
18}