/// Represents an error. Every time an error is created through
/// the [`new`](Error::new) function. It will log an error.
#[derive(Debug)]pubstructError{pubmessage: String,
}implError{pubfnnew(msg:&str)-> Error{log::error!("{}", msg);
Error {
message: msg.to_owned(),}}}