exception

git-svn-id: svn://elaine/murooma/trunk@316 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-12-21 20:21:25 +00:00
parent fd3b671633
commit 8afca63ded
4 changed files with 45 additions and 21 deletions

26
common/snapException.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef SNAP_EXCEPTION_H
#define SNAP_EXCEPTION_H
#include <exception>
#include <string>
struct snapException : std::exception {
snapException(const std::string& what) noexcept
{
what_ = what;
}
const char* what() const noexcept
{
return what_.c_str();
}
private:
std::string what_;
};
#endif