00001 #ifndef SIGEL_ROBOT_SIG_ROBOTEXCEPTIONS_H
00002 #define SIGEL_ROBOT_SIG_ROBOTEXCEPTIONS_H
00003
00004 #include <qstring.h>
00005 #include "SIGEL_Tools/SIG_Exception.h"
00006
00007
00008
00009 using SIGEL_Tools::SIG_Exception;
00010
00011 namespace SIGEL_Robot {
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 class SIG_UnstreamingError : public SIG_Exception {
00028 public:
00029 SIG_UnstreamingError (QString file, int line,
00030 QString message)
00031 : SIG_Exception (file, line,
00032 "Unstreaming error: " + message + ".")
00033 { }
00034 };
00035
00036 class SIG_CannotMirtich : public SIG_Exception {
00037 public:
00038 SIG_CannotMirtich (QString file,
00039 int line,
00040 QString dxf)
00041 : SIG_Exception (file, line,
00042 "Cannot calculate Mirtich's properties for \"" + dxf + "\".")
00043 { }
00044 };
00045
00046 class SIG_InitialLocationError : public SIG_Exception {
00047 public:
00048 SIG_InitialLocationError (QString file,
00049 int line,
00050 QString message)
00051 : SIG_Exception (file, line,
00052 "Cannot determine initial location: " + message)
00053 { }
00054 };
00055
00056 class SIG_InvalidKinematicsError : public SIG_Exception {
00057 public:
00058 SIG_InvalidKinematicsError (QString file,
00059 int line,
00060 QString linkname)
00061 : SIG_Exception (file, line,
00062 "Ambiguous initial values for \"" +
00063 linkname + "\".")
00064 { }
00065 };
00066 }
00067
00068 #endif