wmv_decoder/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum DecoderError {
5    #[error("I/O error: {0}")]
6    Io(#[from] std::io::Error),
7
8    #[error("Invalid data: {0}")]
9    InvalidData(String),
10
11    #[error("Unsupported feature: {0}")]
12    Unsupported(String),
13
14    #[error("End of stream")]
15    EndOfStream,
16}
17
18pub type Result<T> = std::result::Result<T, DecoderError>;