1 #ifndef STAN_MATH_PRIM_ERR_DOMAIN_ERROR_HPP
2 #define STAN_MATH_PRIM_ERR_DOMAIN_ERROR_HPP
3
4 #include <stan/math/prim/meta.hpp>
5 #include <stan/math/prim/err/throw_domain_error.hpp>
6
7 namespace stan {
8 namespace math {
9
10 /**
11 * @deprecated use <code>throw_domain_error</code>
12 */
13 template <typename T>
domain_error(const char * function,const char * name,const T & y,const char * msg1,const char * msg2)14 inline void domain_error(const char* function, const char* name, const T& y,
15 const char* msg1, const char* msg2) {
16 throw_domain_error(function, name, y, msg1, msg2);
17 }
18
19 /**
20 * @deprecated use <code>throw_domain_error</code>
21 */
22 template <typename T>
domain_error(const char * function,const char * name,const T & y,const char * msg1)23 inline void domain_error(const char* function, const char* name, const T& y,
24 const char* msg1) {
25 throw_domain_error(function, name, y, msg1);
26 }
27
28 } // namespace math
29 } // namespace stan
30 #endif
31