Rcpp:exception -> throw std:range_error