00001 #ifndef SCT_STDEXCEPTIONWRAPPER_H
00002 #define SCT_STDEXCEPTIONWRAPPER_H
00003
00004 #include "Sct/Exception.h"
00005
00006 namespace Sct {
00007
00008
00009 class StdExceptionWrapper : public Exception {
00010 public:
00014 StdExceptionWrapper(const std::exception& exception) throw() {
00015 initialize("STD_ERROR", "Sct::StdExceptionWrapper", exception.what(), 0, "Unknown", 0);
00016 }
00020 StdExceptionWrapper(const std::exception& exception, const string& file, unsigned line) throw() {
00021 initialize("STD_ERROR", "Sct::StdExceptionWrapper", exception.what(), 0, file, line);
00022 }
00023
00024 };
00025
00026
00027 }
00028
00029 #endif //SCT_STDEXCEPTIONWRAPPER_H