| 1 |
/* |
| 2 |
* Aiksaurus - An open source thesaurus library |
| 3 |
* Copyright (C) 2001 by Jared Davis |
| 4 |
* |
| 5 |
* This program is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU General Public License |
| 7 |
* as published by the Free Software Foundation; either version 2 |
| 8 |
* of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 18 |
* 02111-1307, USA. |
| 19 |
* |
| 20 |
*/ |
| 21 |
|
| 22 |
#ifndef INCLUDED_AIKSAURUS_ERRORS_H |
| 23 |
#define INCLUDED_AIKSAURUS_ERRORS_H |
| 24 |
|
| 25 |
namespace AiksaurusImpl |
| 26 |
{ |
| 27 |
class AiksaurusError |
| 28 |
{ |
| 29 |
private: |
| 30 |
|
| 31 |
const char* d_description; |
| 32 |
|
| 33 |
public: |
| 34 |
|
| 35 |
static const char* SUCCESS; |
| 36 |
|
| 37 |
static const char* CANNOT_OPEN_MEANINGS_FILE; |
| 38 |
static const char* CORRUPT_MEANINGS_FILE; |
| 39 |
|
| 40 |
static const char* CANNOT_OPEN_WORDS_FILE; |
| 41 |
static const char* CORRUPT_WORDS_FILE; |
| 42 |
|
| 43 |
static const char* CANNOT_ALLOCATE_MEMORY; |
| 44 |
|
| 45 |
AiksaurusError(); |
| 46 |
~AiksaurusError(); |
| 47 |
|
| 48 |
void setDescription(const char* str); |
| 49 |
const char* getDescription() const; |
| 50 |
|
| 51 |
bool isError() const; |
| 52 |
}; |
| 53 |
} |
| 54 |
|
| 55 |
#endif // INCLUDED_AIKSAURUS_ERRORS_H |