forked from teamnwah/openmw-tes3coop
Killed str_error, std::runtime_error does the job
parent
2407f21c47
commit
053074babb
@ -1,25 +0,0 @@
|
||||
#ifndef __STR_EXCEPTION_H
|
||||
#define __STR_EXCEPTION_H
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
/** @brief A simple exception that takes and holds a string
|
||||
|
||||
Usage:
|
||||
|
||||
throw str_exception("message");
|
||||
|
||||
*/
|
||||
class str_exception : public std::exception
|
||||
{
|
||||
std::string msg;
|
||||
|
||||
public:
|
||||
|
||||
str_exception(const std::string &m) : msg(m) {}
|
||||
~str_exception() throw() {}
|
||||
const char* what() const throw() { return msg.c_str(); }
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue