-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathExceptions.h
More file actions
32 lines (27 loc) · 786 Bytes
/
Copy pathExceptions.h
File metadata and controls
32 lines (27 loc) · 786 Bytes
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
#ifndef __EXCEPTIONS__H__
#define __EXCEPTIONS__H__
#include <exception>
/*! \brief Generic exception class
*
* This is a basic exception class. It only adds to the std::exception a constructor taking a string
* which describes the exception and is extracted by the virtual what() member function.
*
*/
class Exception : public std::exception
{
public:
/*! \brief Generic Exception constructor
*
* \param a_message description of the exception. This message can be catched by the member function what().
* @see what()
*/
Exception(const char *a_message);
virtual ~Exception() throw(){};
/*! \brief returns the string describing the exception
*
*/
virtual const char * what();
private:
const char *m_message;
};
#endif //__EXCEPTIONS__H__