00001
00002 #ifndef SCT_SCTAPI_SCTAPIEXCEPTION_H
00003 #define SCT_SCTAPI_SCTAPIEXCEPTION_H
00004
00005
00010
00011 namespace SctApi {
00012 class SctApiException;
00013 };
00014
00015
00016
00017
00018 namespace SctApi {
00019 class CrateException;
00020 };
00021
00022
00023 namespace SctApi {
00024
00025 class SctApiException : public std::exception {
00026 std::string desc;
00027 public:
00029 SctApiException(const std::string &str) throw() : desc(str) {}
00030
00032 SctApiException(const CrateException &c) throw();
00033
00034 ~SctApiException() throw() {}
00035
00037 virtual const char* what () const throw() { return desc.c_str(); }
00038 };
00039
00040 };
00041
00042 #endif