pub struct WcgiError { /* private fields */ }Implementations§
source§impl WcgiError
impl WcgiError
sourcepub fn wrap<E: Error + Send + Sync + 'static, M: Into<String>>(
error: E,
message: M
) -> Self
pub fn wrap<E: Error + Send + Sync + 'static, M: Into<String>>( error: E, message: M ) -> Self
Wrap an error with a custom message.
sourcepub fn msg<M: Into<String>>(message: M) -> Self
pub fn msg<M: Into<String>>(message: M) -> Self
Construct a new error with a simple error message.