Throw an invalid_argument exception with a consistently formatted message.
This is an abstraction for all Stan functions to use when throwing invalid argument. This will allow us to change the behavior for all functions at once. The message is: "<function>: <name> <msg1><y><msg2>"
- Template Parameters
-
- Parameters
-
function | Name of the function |
name | Name of the variable |
y | Variable |
msg1 | Message to print before the variable |
msg2 | Message to print after the variable |
- Exceptions
-
Definition at line 27 of file invalid_argument.hpp.