blob: ea328fe2d4b8929b92a215faff1738c518eafbb2 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/**
* Exception.h
* Implementation of Php Exceptions.
*
* @author Jasper van Eck <jasper.vaneck@copernica.com>
* @copyright 2013 Copernica BV
*/
/**
* Set up namespace
*/
namespace Php {
/**
* Class definition
*/
class Exception
{
private:
/**
* The exception message
* @var char*
*/
char* _message;
public:
/**
* Constructor
* @param string The exception message.
*/
Exception(char* message) throw()
{
_message = message;
}
/**
* Destructor
*/
~Exception() throw()
{
}
/**
* Returns the message of the exception.
* @return std::string
*/
char* getMessage() const throw()
{
return _message;
}
};
}
|