1#ifndef STAN_MATH_PRIM_ERR_INVALID_ARGUMENT_HPP
2#define STAN_MATH_PRIM_ERR_INVALID_ARGUMENT_HPP
28 const char* msg1,
const char* msg2) {
29 std::ostringstream message;
30 message << function <<
": " << name <<
" " << msg1 << y << msg2;
31 throw std::invalid_argument(message.str());
void invalid_argument(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw an invalid_argument exception with a consistently formatted message.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...