From: stephan b. <sg...@us...> - 2004-12-25 00:04:48
|
Update of /cvsroot/pclasses/pclasses2/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18687/src Modified Files: Exception.cpp Log Message: Added std::string overloads on the Error ctors. Index: Exception.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/Exception.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Exception.cpp 24 Dec 2004 23:01:35 -0000 1.5 +++ Exception.cpp 25 Dec 2004 00:04:38 -0000 1.6 @@ -23,12 +23,12 @@ namespace P { Exception::Exception(const char* what, const SourceInfo& si) throw() - : _what(what?what:""), _source(&si), _where() + : _what(what?what:""), _source(&si), _where("") { } Exception::Exception(const std::string & what, const SourceInfo& si) throw() - : _what(what), _source(&si), _where() + : _what(what), _source(&si), _where("") { } @@ -94,6 +94,11 @@ { } +RuntimeError::RuntimeError(const std::string & what, const SourceInfo& si) throw() +: Exception(what, si) +{ +} + RuntimeError::~RuntimeError() throw() { } @@ -103,6 +108,10 @@ : RuntimeError(what, si) { } +OutOfBounds::OutOfBounds(const std::string & what, const SourceInfo& si) throw() +: RuntimeError(what, si) +{ +} OutOfBounds::~OutOfBounds() throw() { @@ -113,6 +122,10 @@ : RuntimeError(what, si) { } +OverrunError::OverrunError(const std::string & what, const SourceInfo& si) throw() +: RuntimeError(what, si) +{ +} OverrunError::~OverrunError() throw() { @@ -123,6 +136,10 @@ : RuntimeError(what, si) { } +UnderrunError::UnderrunError(const std::string & what, const SourceInfo& si) throw() +: RuntimeError(what, si) +{ +} UnderrunError::~UnderrunError() throw() { @@ -133,6 +150,10 @@ : RuntimeError(what, si) { } +OverflowError::OverflowError(const std::string & what, const SourceInfo& si) throw() +: RuntimeError(what, si) +{ +} OverflowError::~OverflowError() throw() { |