use rml_amf0::Amf0DeserializationError;
use thiserror::Error;
use std::io;
#[derive(Debug, Error)]
pub enum MessageDeserializationError {
#[error("The message was not encoded in an expected format")]
InvalidMessageFormat,
#[error("The message did no contain valid Amf0 encoded values: {0}")]
Amf0DeserializationError(#[from] Amf0DeserializationError),
#[error("An IO error occurred while reading the input: {0}")]
Io(#[from] io::Error),
}