pub fn new_costom_error_pos<'i>(msg: String, pos: Position<'i>) -> Error
Constructs and returns an error with a custom error message and position.