Files
pmomusic/pmoupnp/src/state_variables/errors.rs

29 lines
588 B
Rust
Raw Normal View History

2025-09-16 21:07:44 +02:00
use thiserror::Error;
#[derive(Error, Debug)]
pub enum StateVariableError {
#[error("Conversion error: {0}")]
ConversionError(String),
2025-10-01 07:42:16 +02:00
2025-09-16 21:07:44 +02:00
#[error("Validation error: {0}")]
ValidationError(String),
2025-10-01 07:42:16 +02:00
2025-09-16 21:07:44 +02:00
#[error("Range error: {0}")]
RangeError(String),
2025-10-01 07:42:16 +02:00
2025-09-16 21:07:44 +02:00
#[error("Type error: {0}")]
TypeError(String),
2025-10-01 07:42:16 +02:00
2025-09-16 21:07:44 +02:00
#[error("Parse error: {0}")]
ParseError(String),
2025-10-01 07:42:16 +02:00
2025-09-16 21:07:44 +02:00
#[error("Event condition error: {0}")]
EventConditionError(String),
2025-10-01 07:42:16 +02:00
2025-09-16 21:07:44 +02:00
#[error("Arithmetic error: {0}")]
ArithmeticError(String),
2025-10-01 07:42:16 +02:00
2025-09-16 21:07:44 +02:00
#[error("Unknown error: {0}")]
Unknown(String),
}