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. (We've already changed behavior multiple times up to Stan v2.5.0.) The message is: "<function>: <name> <msg1><y>"
- Template Parameters
-
- Parameters
-
function | Name of the function |
name | Name of the variable |
y | Variable |
msg1 | Message to print before the variable |
- Exceptions
-
Definition at line 49 of file invalid_argument.hpp.