wrap internal exceptions