Module prelude

Module prelude 

Source
Expand description

The error prelude.

Re-exports§

pub use super::IgnoreLogging;
pub use super::WithContext;
pub use super::WithContextUntyped;
pub use crate::Result;

Macros§

_eco_format
Formats a string. Create a new EcoString from a format string.
bail
Bails with the given arguments.
error_once
Creates an error with a message.
error_once_map
Maps the given error to an error with arguments.
error_once_map_string
Maps the given string error to an error with arguments.

Functions§

_error_once
Creates an error with arguments.
_msg
Creates an error with a message.
map_err
Maps the given error to an error.
map_err_with_args
Maps the given error to an error with arguments.
map_into_err
Maps the given error to an error.
map_into_err_with_args
Maps the given error to an error with arguments.
map_string_err
Maps the given string error to an error.
map_string_err_with_args
Maps the given string error to an error with arguments.
wrap_err
Wraps the given error.
wrap_err_with_args
Wraps the given error with arguments.