/src/aspell/common/error.hpp
Line | Count | Source |
1 | | /* This file is part of The New Aspell |
2 | | * Copyright (C) 2001-2002 by Kevin Atkinson under the GNU LGPL |
3 | | * license version 2.0 or 2.1. You should have received a copy of the |
4 | | * LGPL license along with this library if you did not you can find it |
5 | | * at http://www.gnu.org/. */ |
6 | | |
7 | | #ifndef ASPELL_ERROR__HPP |
8 | | #define ASPELL_ERROR__HPP |
9 | | |
10 | | namespace acommon { |
11 | | |
12 | | struct ErrorInfo; |
13 | | |
14 | | struct Error { |
15 | | const char * mesg; // expected to be allocated with malloc |
16 | | const ErrorInfo * err; |
17 | | |
18 | 29.4k | Error() : mesg(0), err(0) {} |
19 | | |
20 | | Error(const Error &); |
21 | | Error & operator=(const Error &); |
22 | | ~Error(); |
23 | | |
24 | | bool is_a(const ErrorInfo * e) const; |
25 | | }; |
26 | | |
27 | | struct ErrorInfo { |
28 | | const ErrorInfo * isa; |
29 | | const char * mesg; |
30 | | unsigned int num_parms; |
31 | | const char * parms[3]; |
32 | | }; |
33 | | |
34 | | |
35 | | } |
36 | | |
37 | | #endif /* ASPELL_ERROR__HPP */ |