Stan  2.10.0
probability, sampling & optimization
json_error.hpp
Go to the documentation of this file.
1 #ifndef STAN_IO_JSON_JSON_ERROR_HPP
2 #define STAN_IO_JSON_JSON_ERROR_HPP
3 
4 #include <stdexcept>
5 #include <string>
6 
7 namespace stan {
8 
9  namespace json {
10 
14  struct json_error : public std::logic_error {
19  explicit json_error(const std::string& what)
20  : logic_error(what) {
21  }
22  };
23 
24  }
25 }
26 #endif
json_error(const std::string &what)
Construct a JSON error with the specified message.
Definition: json_error.hpp:19
Probability, optimization and sampling library.
Exception type for JSON errors.
Definition: json_error.hpp:14

     [ Stan Home Page ] © 2011–2016, Stan Development Team.