1 #ifndef STAN_MATH_PRIM_SCAL_ERR_DOMAIN_ERROR_HPP 2 #define STAN_MATH_PRIM_SCAL_ERR_DOMAIN_ERROR_HPP 31 const T& y,
const char* msg1,
const char* msg2) {
32 std::ostringstream message;
35 message <<
function <<
": " << name <<
" " << msg1 << (*y_ptr) << msg2;
57 const T& y,
const char* msg1) {
void domain_error(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message.
void domain_error(const char *function, const char *name, const T &y, const char *msg1)
Throw a domain error with a consistently formatted message.