Generic hardware access library
/home/cschwick/hal/generic/include/hal/SequencerSyntaxError.hh
Go to the documentation of this file.
00001 #ifndef __SequencerSyntaxError
00002 #define __SequencerSyntaxError
00003 
00004 #include <string>
00005 #include "hal/HardwareAccessException.hh"
00006 
00007 namespace HAL {
00008 
00021 class SequencerSyntaxError : public HardwareAccessException {
00022 public:
00023   ~SequencerSyntaxError() throw() {};
00024   SequencerSyntaxError() 
00025     : name( "SequencerSyntaxError") {    
00026       whatString = "(SequencerSyntaxError) Syntax Error in Command Sequence."; 
00027   }
00028 
00029   SequencerSyntaxError( std::string text ) 
00030     : name( "SequencerSyntaxError"),  
00031       whatString( "(" + name + ") " + text ) {
00032   }
00033 
00034   const char *what() const throw() {
00035     return whatString.c_str();
00036   }
00037 
00038 private :
00039   std::string name;
00040   std::string whatString;
00041 };
00042 
00043 } /* namespace HAL */
00044 
00045 #endif /* __SequencerSyntaxError */