1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#include "napiconfig.h"
#include "NeXusFile.hpp"
#include "NeXusException.hpp"
/**
* \file NeXusException.cpp
* The implementation of the NeXus::Exception class
*/
namespace NeXus
{
Exception::Exception(const std::string& msg, const int status) :
std::runtime_error(msg) {
this->m_what = msg;
this->m_status = status;
}
const char* Exception::what() const throw() {
return this->m_what.c_str();
}
int Exception::status() throw() {
return this->m_status;
}
Exception::~Exception() throw() {
}
}
|