Changeset 280 in pacpusframework for trunk/include
- Timestamp:
- Mar 20, 2014, 11:59:05 AM (11 years ago)
- Location:
- trunk/include/Pacpus/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/kernel/DbiteException.h
r156 r280 18 18 #include <Pacpus/kernel/PacpusException.h> 19 19 20 #include <ios> 20 21 #include <string> 21 22 … … 29 30 /// Ctor. 30 31 /// @param what Information about the exception. 31 DbiteException( const std::string & what);32 DbiteException(std::string const& what = ""); 32 33 33 34 /// Dtor. … … 35 36 }; 36 37 38 typedef boost::error_info<struct tag_errinfo_ios_base_open_mode, std::ios_base::openmode> errinfo_ios_base_open_mode; 39 37 40 } // namespace pacpus 38 41 -
trunk/include/Pacpus/kernel/PacpusException.h
r156 r280 17 17 #include <Pacpus/kernel/PacpusLibConfig.h> 18 18 19 //#include <boost/exception/exception.hpp> 19 #include <boost/exception/exception.hpp> 20 #include <boost/exception/error_info.hpp> 20 21 #include <exception> 21 22 #include <string> … … 23 24 #ifdef _MSC_VER 24 25 # pragma warning(push) 25 # pragma warning(disable: 4251 )26 # pragma warning(disable: 4251 4275) 26 27 #endif // _MSC_VER 27 28 28 namespace pacpus { 29 namespace pacpus 30 { 29 31 30 32 /// Base class for all exceptions in the framework 31 33 class PACPUSLIB_API PacpusException 32 : virtual public std::exception33 //, virtual public boost::exception34 : /*virtual*/ public std::runtime_error 35 , virtual public boost::exception 34 36 { 35 37 public: 36 38 /// Ctor. 37 39 /// @param what Information about the exception. 38 PacpusException( const std::string & what);40 PacpusException(std::string const& what = ""); 39 41 40 42 /// Dtor. 41 virtual ~PacpusException() throw(); 42 43 /// Gets more information about the error. 44 /// 45 /// @returns Message containing information about the error. 46 virtual const char * what() const throw(); 47 48 protected: 49 std::string mWhat; 43 virtual ~PacpusException(); 50 44 }; 51 45 52 46 } // namespace pacpus 47 48 typedef boost::error_info<struct tag_errinfo_signal, int> errinfo_signal; 53 49 54 50 #ifdef _MSC_VER
Note:
See TracChangeset
for help on using the changeset viewer.