1 #ifndef STAN_MATH_PRIM_SCAL_ERR_SYSTEM_ERROR_HPP 2 #define STAN_MATH_PRIM_SCAL_ERR_SYSTEM_ERROR_HPP 8 #include <system_error> 25 inline void system_error(
const char*
function,
const char* name,
const int& y,
26 const char* msg1,
const char* msg2) {
27 std::ostringstream message;
29 message <<
function <<
": " << name <<
" " << msg1 << msg2;
45 inline void system_error(
const char*
function,
const char* name,
const int& y,
void system_error(const char *function, const char *name, const int &y, const char *msg1, const char *msg2)
Throw a system error with a consistently formatted message.
void system_error(const char *function, const char *name, const int &y, const char *msg1)
Throw a system error with a consistently formatted message.