dbc  ..
error.hpp
1 #ifndef __ERROR_HPP__
2 #define __ERROR_HPP__
3 
4 #include <sstream>
5 
6 namespace libdbc {
7 
8 class exception : public std::exception {
9 public:
10  const char* what() const throw() {
11  return "libdbc exception occurred";
12  }
13 };
14 
15 class validity_error : public exception {
16 public:
17  const char* what() const throw() {
18  return "Invalid DBC file";
19  }
20 };
21 
22 } // libdbc
23 
24 #endif // __ERROR_HPP__
Definition: error.hpp:8
Definition: error.hpp:15