-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathException.h
35 lines (26 loc) · 887 Bytes
/
Exception.h
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
31
32
33
34
35
/****************************************************************************
Copyright (C) 2012 Adrian Blumer ([email protected])
Copyright (C) 2012 Pascal Spörri ([email protected])
Copyright (C) 2012 Sabina Schellenberg ([email protected])
All Rights Reserved.
You may use, distribute and modify this code under the terms of the
MIT license (http://opensource.org/licenses/MIT).
*****************************************************************************/
#ifndef EXCEPTION_H
#define EXCEPTION_H
#include <exception>
class Exception : public std::exception
{
protected:
std::string _message;
public:
Exception(const std::string& message)
: _message(message)
{}
~Exception() throw(){}
virtual const char* what() const throw()
{
return _message.c_str();
}
};
#endif // EXCEPTION_H