|
UniSet
1.7.0
|
00001 #ifndef UExceptions_H_ 00002 #define UExceptions_H_ 00003 // -------------------------------------------------------------------------- 00004 struct UException 00005 { 00006 UException(){} 00007 UException( const std::string& e ):err(e){} 00008 UException( const char* e ):err( std::string(e)){} 00009 ~UException(){} 00010 00011 const char* getError(){ return err.c_str(); } 00012 00013 std::string err; 00014 }; 00015 //--------------------------------------------------------------------------- 00016 struct UTimeOut: 00017 public UException 00018 { 00019 UTimeOut():UException("UTimeOut"){} 00020 UTimeOut( const std::string& e ):UException(e){} 00021 ~UTimeOut(){} 00022 }; 00023 //--------------------------------------------------------------------------- 00024 struct USysError: 00025 public UException 00026 { 00027 USysError():UException("UTimeOut"){} 00028 USysError( const std::string& e ):UException(e){} 00029 ~USysError(){} 00030 }; 00031 //--------------------------------------------------------------------------- 00032 #endif 00033 //---------------------------------------------------------------------------
1.7.6.1