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><msg2>"
- Template Parameters
-
- Parameters
-
[in] | function | Name of the function. |
[in] | name | Name of the variable. |
[in] | y | Variable. |
[in] | msg1 | Message to print before the variable. |
[in] | msg2 | Message to print after the variable. |
- Exceptions
-
Definition at line 26 of file throw_domain_error.hpp.