CARMA C++
exceptions.h
Go to the documentation of this file.
1 
10 #ifndef CARMA_CANBUS_EXCEPTIONS_H
11 #define CARMA_CANBUS_EXCEPTIONS_H
12 
13 // C++ Standard Library includes
14 #include <fstream>
15 #include <iostream>
16 #include <sstream>
17 #include <string>
18 
19 // Carma includes
21 
22 // Alien includes
23 #include "log4cpp/Priority.hh"
24 
25 #ifdef SystemException
26 #undef SystemException
27 #endif
28 
29 namespace carma {
30  namespace canbus {
31 
40  MAKE_DERIVED_ERROR_EXCEPTION(SystemException);
41 
53  MAKE_DERIVED_ERROR_EXCEPTION(TxBufferFullException);
54 
69  MAKE_DERIVED_ERROR_EXCEPTION(BadDataSizeException);
70 
79  MAKE_DERIVED_ERROR_EXCEPTION(BadParameterException);
80 
92  MAKE_DERIVED_ERROR_EXCEPTION(BufferOverflowException);
93 
106  MAKE_DERIVED_ERROR_EXCEPTION(JanzFailException);
107 
115  MAKE_DERIVED_ERROR_EXCEPTION(PthreadFailException);
116 
117  } // namespace canbus
118 } // namesapce carma
119 
120 #endif
Exception class to signal an invalid parameter.
Exception class for errors.
TxBuferFullException class.
Exception class for invalid data vector size.
Exception class to indicate janz interface failure.
Exception class to indicate write overflows.
Exception class to indicate pthread interface failure.
System Exception class.