summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/exceptions/exception.h
blob: 4acbc1ee9299196a353aabd0be51944e4e279630 (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