summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/exceptions/exception.h
blob: 73c08613281b279a8d4a75c136a1b9c9a6d98d66 (plain)
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
#ifndef _ASURA_ENGINE_EXCEPTION_H_
#define _ASURA_ENGINE_EXCEPTION_H_

#include <string>
#include <exception>

namespace AsuraEngine
{
	
class Exception : public std::exception
{
public:

	Exception(const char *fmt, ...);
	virtual ~Exception() throw();

	inline virtual const char *what() const throw()
	{
		return message.c_str();
	}

private:

	std::string message;

}; // Exception

}

#endif