/usr/include/apertium-3.4/apertium/exception.h is in apertium-dev 3.4.2~r68466-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | // Copyright (C) 2005 Universitat d'Alacant / Universidad de Alicante
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
#ifndef EXCEPTION_APERTIUM_TAGGER_H
#define EXCEPTION_APERTIUM_TAGGER_H
#include "exception_type.h"
#include <sstream>
namespace Apertium {
namespace Exception {
#define EXCEPTION(EXCEPTION_TYPE) \
class EXCEPTION_TYPE : public ::Apertium::ExceptionType { \
public: \
EXCEPTION_TYPE(const char *const what_) : ExceptionType(what_) {} \
EXCEPTION_TYPE(const std::string &what_) : ExceptionType(what_) {} \
EXCEPTION_TYPE(const std::stringstream &what_) : ExceptionType(what_) {} \
~EXCEPTION_TYPE() throw() {} \
};
namespace Analysis {
EXCEPTION(TheMorphemes_empty)
}
namespace apertium_tagger {
EXCEPTION(deserialise)
EXCEPTION(fclose)
EXCEPTION(fopen)
EXCEPTION(ifstream_fail)
EXCEPTION(ofstream_fail)
EXCEPTION(optarg_eq_NULL)
EXCEPTION(str_end_not_eq_NULL)
EXCEPTION(wifstream_fail)
EXCEPTION(wofstream_fail)
EXCEPTION(ERANGE_)
EXCEPTION(InvalidArgument)
EXCEPTION(InvalidOption)
EXCEPTION(UnexpectedFileArgumentCount)
EXCEPTION(UnexpectedFlagOption)
EXCEPTION(UnexpectedFunctionTypeOption)
EXCEPTION(UnexpectedFunctionTypeTypeOption)
}
namespace Deserialiser {
EXCEPTION(size_t_)
EXCEPTION(not_Stream_good)
EXCEPTION(wchar_t_)
}
namespace LexicalUnit {
EXCEPTION(TheAnalyses_empty)
}
namespace Morpheme {
EXCEPTION(TheLemma_empty)
EXCEPTION(TheTags_empty)
}
namespace Optional {
EXCEPTION(TheOptionalTypePointer_null)
}
namespace Serialiser {
EXCEPTION(not_Stream_good)
EXCEPTION(size_t_)
EXCEPTION(wchar_t_)
}
namespace Tag {
EXCEPTION(TheTags_empty)
}
namespace wchar_t_ExceptionType {
EXCEPTION(EILSEQ_)
}
#undef EXCEPTION
}
}
#endif // EXCEPTION_APERTIUM_TAGGER_H
|