NeXus  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NeXusException.cpp
Go to the documentation of this file.
1 #include "NeXusFile.hpp"
2 #include "NeXusException.hpp"
3 
9 namespace NeXus
10 {
11 
12 Exception::Exception(const std::string& msg, const int status) :
13  std::runtime_error(msg) {
14  this->m_what = msg;
15  this->m_status = status;
16 }
17 
18 const char* Exception::what() const throw() {
19  return this->m_what.c_str();
20 }
21 
22 int Exception::status() throw() {
23  return this->m_status;
24 }
25 
27 }
28 
29 }