macro_rules! location {
() => { ... };
}Expand description
Captures the current source file and line number as error context.
This macro creates an ErrorContext::location
using the file!() and line!() built-in macros, providing precise source location
information for debugging.
ยงExamples
use error_rail::{location, ComposableError};
let err = ComposableError::<&str>::new("io error")
.with_context(location!());