Skip to main content

error

Macro error 

Source
macro_rules! error {
    ($($arg:tt)*) => { ... };
}
Expand description

Create an XXError with a formatted message

ยงExample

use xx::error;

let err = error!("Failed to process file: {}", "test.txt");