make_error

Macro make_error 

Source
macro_rules! make_error {
    ($NAME_ERR:ident, $NAME_DF_ERR: ident, $ERR:ident) => { ... };
    (@inner ($d:tt), $NAME_ERR:ident, $NAME_DF_ERR:ident, $ERR:ident) => { ... };
}
Expand description

Add a macros for concise DataFusionError::* errors declaration supports placeholders the same way as format! Examples: plan_err!(“Error”) plan_err!(“Error {}”, val) plan_err!(“Error {:?}”, val) plan_err!(“Error {val}”) plan_err!(“Error {val:?}”)

NAME_ERR - macro name for wrapping Err(DataFusionError::) NAME_DF_ERR - macro name for wrapping DataFusionError::. Needed to keep backtrace opportunity in construction where DataFusionError::* used directly, like map_err, ok_or_else, etc