mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-01 06:17:58 +03:00
Renamed all .h to .hpp for consistency
This commit is contained in:
parent
52e7570b4f
commit
6b0b7c95f8
53 changed files with 80 additions and 79 deletions
19
tools/str_exception.hpp
Normal file
19
tools/str_exception.hpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef __STR_EXCEPTION_H
|
||||
#define __STR_EXCEPTION_H
|
||||
|
||||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
/// A simple exception that takes and holds a string
|
||||
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…
Add table
Add a link
Reference in a new issue