use rml_amf0::Amf0SerializationError;
use thiserror::Error;
use std::io;
#[derive(Debug, Error)]
pub enum MessageSerializationError {
#[error("Cannot serialize a SetChunkSize message with a size of 2147483648 or greater")]
InvalidChunkSize,
#[error("The values provided could not be serialized into valid AMF0 encoded data")]
Amf0SerializationError(#[from] Amf0SerializationError),
#[error("An IO error occurred while writing the output")]
Io(#[from] io::Error),
}