Analysis API

Exceptions are well-supported in Python (Cython) and R (Rcpp). The Stan
library already uses them in a few places.