Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Throw a domain error with a consistently formatted message.
This is an abstraction for all Stan functions to use when throwing domain errors. This will allow us to change the behavior for all functions at once. The message is: * "<function>: <name> <msg1><y>"
T | Type of variable. |
[in] | function | Name of the function. |
[in] | name | Name of the variable. |
[in] | y | Variable. |
[in] | msg1 | Message to print before the variable. |
std::domain_error | Always. |
Definition at line 49 of file throw_domain_error.hpp.