00001 #ifndef SCTCALIBRATIONCONTROLLER_SCTAPIEXCEPTION_H 00002 #define SCTCALIBRATIONCONTROLLER_SCTAPIEXCEPTION_H 00003 00004 #include "Sct/IpcException.h" 00005 00006 namespace SctCalibrationController { 00007 00013 class SctApiException : public Sct::IpcException { 00014 public: 00018 SctApiException(const ilu_Exception& error, const string& msg, const string& file, int line) throw() 00019 : Sct::IpcException(error, msg, file, line) { 00020 initialize("SCTAPI_EXCEPTION", "CalibrationController::SctApiException", msg, 0, file, line); 00021 } 00022 00027 SctApiException(const ilu_Exception& error, Throwable& cause, const string& file, int line) throw() 00028 : Sct::IpcException(error, msg, file, line) { 00029 initialize("SCTAPI_EXCEPTION", "CalibrationController::SctApiException", "", &cause, file, line); 00030 } 00031 00035 SctApiException(const ilu_Exception& error, const string& msg, Throwable& cause, const string& file, int line) throw() 00036 : Sct::IpcException(error, msg, file, line) { 00037 initialize("SCTAPI_EXCEPTION", "CalibrationController::SctApiException", msg, &cause, file, line); 00038 } 00039 00040 protected: 00041 SctApiException() throw() {} 00042 }; 00043 } 00044 #endif //SCTCALIBRATIONCONTROLLER_SCTAPIEXCEPTION_H