1 |
/* |
2 |
* HT Editor |
3 |
* sysexcept.h |
4 |
* |
5 |
* Copyright (C) 1999-2002 Stefan Weyergraf |
6 |
* |
7 |
* This program is free software; you can redistribute it and/or modify |
8 |
* it under the terms of the GNU General Public License version 2 as |
9 |
* published by the Free Software Foundation. |
10 |
* |
11 |
* This program is distributed in the hope that it will be useful, |
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
* GNU General Public License for more details. |
15 |
* |
16 |
* You should have received a copy of the GNU General Public License |
17 |
* along with this program; if not, write to the Free Software |
18 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
*/ |
20 |
|
21 |
#ifndef __SYSEXCEPT_H__ |
22 |
#define __SYSEXCEPT_H__ |
23 |
|
24 |
#define SYS_EXCEPTION_STR_MAX 256 |
25 |
|
26 |
#include <exception> |
27 |
|
28 |
class sys_exception: public std::exception { |
29 |
private: |
30 |
char str[SYS_EXCEPTION_STR_MAX]; |
31 |
public: |
32 |
sys_exception(char *s); |
33 |
virtual const char * what() const throw(); |
34 |
}; |
35 |
|
36 |
#endif /* __SYSEXCEPT_H__ */ |