usebitreader::BitReaderError;/// The PatchError function. Stores errors thrown by the Patch handler
#[derive(Debug)]pubstructPatchError{/// The message of the error
pubmessage: String,
}implFrom<BitReaderError>forPatchError{fnfrom(err: BitReaderError)->Self{
PatchError {
message:format!("BitReaderError: {:?}", err),}}}