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
canopen::ParseException::ParseException
ParseException(const std::string &w)
Definition: exceptions.h:22
canopen::TimeoutException
Definition: exceptions.h:25
canopen::ParseException
Definition: exceptions.h:20
canopen::Exception::Exception
Exception(const std::string &w)
Definition: exceptions.h:12
canopen::PointerInvalid::PointerInvalid
PointerInvalid(const std::string &w)
Definition: exceptions.h:17
canopen::PointerInvalid
Definition: exceptions.h:15
canopen::TimeoutException::TimeoutException
TimeoutException(const std::string &w)
Definition: exceptions.h:27
canopen
Definition: bcm_sync.h:8
canopen::Exception
Definition: exceptions.h:10


canopen_master
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:26