From: stephan b. <sg...@us...> - 2004-12-25 00:04:48
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18687/include/pclasses Modified Files: Exception.h Log Message: Added std::string overloads on the Error ctors. Index: Exception.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Exception.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Exception.h 24 Dec 2004 17:16:57 -0000 1.3 +++ Exception.h 25 Dec 2004 00:04:37 -0000 1.4 @@ -76,6 +76,7 @@ class LogicError: public Exception { public: LogicError(const char* what, const SourceInfo& si) throw(); + LogicError(const std::string & what, const SourceInfo& si) throw(); ~LogicError() throw(); }; @@ -83,30 +84,36 @@ class RuntimeError: public Exception { public: RuntimeError(const char* what, const SourceInfo& si) throw(); + RuntimeError(const std::string & what, const SourceInfo& si) throw(); ~RuntimeError() throw(); }; class OverrunError: public RuntimeError { public: OverrunError(const char* what, const SourceInfo& si) throw(); + OverrunError(const std::string & what, const SourceInfo& si) throw(); ~OverrunError() throw(); }; class UnderrunError: public RuntimeError { public: UnderrunError(const char* what, const SourceInfo& si) throw(); + UnderrunError(const std::string & what, const SourceInfo& si) throw(); + ~UnderrunError() throw(); }; class OutOfBounds: public RuntimeError { public: OutOfBounds(const char* what, const SourceInfo& si) throw(); + OutOfBounds(const std::string & what, const SourceInfo& si) throw(); ~OutOfBounds() throw(); }; class OverflowError: public RuntimeError { public: OverflowError(const char* what, const SourceInfo& si) throw(); + OverflowError(const std::string & what, const SourceInfo& si) throw(); ~OverflowError() throw(); }; |