|
From: <mk...@us...> - 2003-04-12 22:32:54
|
Update of /cvsroot/csp/APPLICATIONS/SimData/Source
In directory sc8-pr-cvs1:/tmp/cvs-serv2472/Source
Modified Files:
Exception.cpp
Log Message:
see CHANGES.current
Index: Exception.cpp
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/Source/Exception.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Exception.cpp 28 Jan 2003 23:26:07 -0000 1.2
--- Exception.cpp 12 Apr 2003 22:32:51 -0000 1.3
***************
*** 26,30 ****
! Exception::Exception(std::string type, std::string msg) {
//: std::runtime_error(type+": "+msg) {
_type = type;
--- 26,30 ----
! ExceptionBase::ExceptionBase(std::string const &type, std::string const &msg) {
//: std::runtime_error(type+": "+msg) {
_type = type;
***************
*** 33,37 ****
}
! Exception::Exception(Exception const &e) {
_type = e._type;
_msg = e._msg;
--- 33,37 ----
}
! ExceptionBase::ExceptionBase(ExceptionBase const &e) {
_type = e._type;
_msg = e._msg;
***************
*** 40,64 ****
}
! std::string Exception::getMessage() {
return _msg;
}
! std::string Exception::getType() {
return _type;
}
! void Exception::appendMessage(std::string const &msg) {
_msg += "\n" + msg;
}
! void Exception::clear() {
dump = false;
}
! void Exception::details() {
std::cerr << _type << ": " << _msg << std::endl;
}
! Exception::~Exception() {
if (dump) details();
}
--- 40,64 ----
}
! std::string ExceptionBase::getMessage() {
return _msg;
}
! std::string ExceptionBase::getType() {
return _type;
}
! void ExceptionBase::appendMessage(std::string const &msg) {
_msg += "\n" + msg;
}
! void ExceptionBase::clear() {
dump = false;
}
! void ExceptionBase::details() {
std::cerr << _type << ": " << _msg << std::endl;
}
! ExceptionBase::~ExceptionBase() {
if (dump) details();
}
|