1 #ifndef STAN_MATH_PRIM_SCAL_ERR_DOMAIN_ERROR_HPP 2 #define STAN_MATH_PRIM_SCAL_ERR_DOMAIN_ERROR_HPP 27 inline void domain_error(
const char*
function,
const char* name,
const T& y,
28 const char* msg1,
const char* msg2) {
29 std::ostringstream message;
32 message <<
function <<
": " << name <<
" " << msg1 << (*y_ptr) << msg2;
50 inline void domain_error(
const char*
function,
const char* name,
const T& y,
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.