1 #ifndef STAN__COMMON__WRITE_ERROR_MSG_HPP
2 #define STAN__COMMON__WRITE_ERROR_MSG_HPP
12 const std::exception&
e) {
14 if (!error_stream)
return;
16 *error_stream << std::endl
17 <<
"Informational Message: The current Metropolis proposal is about to be"
18 <<
" rejected because of the following issue:"
20 << e.what() << std::endl
21 <<
"If this warning occurs sporadically, such as for highly constrained"
22 <<
" variable types like covariance matrices, then the sampler is fine,"
24 <<
"but if this warning occurs often then your model may be either"
25 <<
" severely ill-conditioned or misspecified."
void write_error_msg(std::ostream *error_stream, const std::exception &e)
double e()
Return the base of the natural logarithm.