pub fn new_custom_error_span<'i>(msg: String, span: Span<'i>) -> Error
Creates a new custom error instance associated with a specific span.