Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ system_error() [2/2]

void stan::math::system_error ( const char *  function,
const char *  name,
const int &  y,
const char *  msg1 
)
inline

Throw a system error with a consistently formatted message.

This is an abstraction for all Stan functions to use when throwing system errors. This will allow us to change the behavior for all functions at once. The message is: * "<function>: <name> <msg1><y>"

Parameters
[in]functionName of the function.
[in]nameName of the variable.
[in]yError code.
[in]msg1Message to print before the variable.
Exceptions
std::system_errorAlways.

Definition at line 45 of file system_error.hpp.