Files
mrw-cxx/mrw/exception.cpp

16 lines
377 B
C++
Raw Normal View History

2004-04-21 06:39:20 +00:00
#include <mrw/exception.hpp>
#include <mrw/stacktrace.hpp>
namespace mrw {
exception::exception() throw(std::bad_exception):
_stacktrace(new StackTrace) {
}
exception::~exception() throw() {
delete _stacktrace;
}
const std::string& exception::stacktrace() const throw(std::bad_exception) {
static const std::string st(*_stacktrace);
return st;
}
}