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