00001 #ifndef SIGEL_ROBOTIO_SIG_ROBOTEXCEPTIONS_H 00002 #define SIGEL_ROBOTIO_SIG_ROBOTEXCEPTIONS_H 00003 00004 #include <qstring.h> 00005 #include "SIGEL_Tools/SIG_Exception.h" 00006 00007 using SIGEL_Tools::SIG_Exception; 00008 00009 namespace SIGEL_RobotIO { 00016 class SIG_FileNotFoundError : public SIG_Exception { 00017 public: 00026 SIG_FileNotFoundError (QString file, 00027 int line, 00028 QString unfound); 00029 }; 00030 00035 class SIG_SyntaxError : public SIG_Exception { 00036 public: 00051 SIG_SyntaxError (QString file, 00052 int line, 00053 QString msg, 00054 QString filenm, 00055 int srcln); 00056 static QString int2string (int i); 00057 }; 00058 00068 class SIG_SemanticError : public SIG_Exception { 00069 public: 00077 SIG_SemanticError (QString file, 00078 int line, 00079 QString msg); 00080 }; 00081 00097 class SIG_CorruptedStreamError : public SIG_Exception { 00098 public: 00111 SIG_CorruptedStreamError (QString file, 00112 int line, 00113 QString msg); 00114 }; 00115 00129 class SIG_MultipleChainsError : public SIG_Exception { 00130 public: 00142 SIG_MultipleChainsError (QString file, 00143 int line, 00144 QString msg); 00145 }; 00146 } 00147 00148 #endif