treelite
error.h
Go to the documentation of this file.
1 
7 #ifndef TREELITE_ERROR_H_
8 #define TREELITE_ERROR_H_
9 
10 #include <stdexcept>
11 #include <string>
12 
13 namespace treelite {
14 
18 struct Error : public std::runtime_error {
19  explicit Error(std::string const& s) : std::runtime_error(s) {}
20 };
21 
22 } // namespace treelite
23 
24 #endif // TREELITE_ERROR_H_
Definition: contiguous_array.h:14
Exception class that will be thrown by Treelite.
Definition: error.h:18
Error(std::string const &s)
Definition: error.h:19