Skip to content

Commit 234d5e6

Browse files
Make raise_error private.
1 parent 966f480 commit 234d5e6

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

stan/math/prim/err/elementwise_check.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ class Checker {
2727
const char* name;
2828
const char* suffix;
2929

30-
public:
31-
/**
32-
* @param is_good predicate to check, must accept doubles and produce bools
33-
* @param function function name (for error messages)
34-
* @param name variable name (for error messages)
35-
* @param suffix message to print at end of error message
36-
*/
37-
Checker(const F& is_good, const char* function, const char* name,
38-
const char* suffix)
39-
: is_good(is_good), function(function), name(name), suffix(suffix) {}
40-
4130
/**
4231
* Throw an exception of type `E`.
4332
* The error message is the string inside the provided stringstream.
@@ -77,6 +66,17 @@ class Checker {
7766
raise_error_ss(ss, messages...);
7867
}
7968

69+
public:
70+
/**
71+
* @param is_good predicate to check, must accept doubles and produce bools
72+
* @param function function name (for error messages)
73+
* @param name variable name (for error messages)
74+
* @param suffix message to print at end of error message
75+
*/
76+
Checker(const F& is_good, const char* function, const char* name,
77+
const char* suffix)
78+
: is_good(is_good), function(function), name(name), suffix(suffix) {}
79+
8080
/**
8181
* Check the scalar.
8282
* @tparam T type of scalar

0 commit comments

Comments
 (0)