exceptions.h
Go to the documentation of this file.
1 #ifndef H_EXCEPTIONS
2 #define H_EXCEPTIONS
3 
4 #include <exception>
5 #include <boost/exception/all.hpp>
6 #include <boost/format.hpp>
7 
8 namespace canopen{
9 
10 class Exception : public std::runtime_error {
11 public:
12  Exception(const std::string &w) : std::runtime_error(w) {}
13 };
14 
15 class PointerInvalid : public Exception{
16 public:
17  PointerInvalid(const std::string &w) : Exception("Pointer invalid") {}
18 };
19 
20 class ParseException : public Exception{
21 public:
22  ParseException(const std::string &w) : Exception(w) {}
23 };
24 
25 class TimeoutException : public Exception{
26 public:
27  TimeoutException(const std::string &w) : Exception(w) {}
28 };
29 
30 
31 } // canopen
32 
33 #endif // !H_EXCEPTIONS
ParseException(const std::string &w)
Definition: exceptions.h:22
Exception(const std::string &w)
Definition: exceptions.h:12
TimeoutException(const std::string &w)
Definition: exceptions.h:27
PointerInvalid(const std::string &w)
Definition: exceptions.h:17


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Sat May 4 2019 02:40:43