LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LinguisticProcessingException.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10
11#ifndef LIMA_LINGUISTICPROCESSING_LINGUISTICPROCESSINGEXCEPTION_H
12#define LIMA_LINGUISTICPROCESSING_LINGUISTICPROCESSINGEXCEPTION_H
13
14#include "common/LimaCommon.h"
15#include <string>
16
17namespace Lima {
18namespace LinguisticProcessing {
19
21 public:
22 explicit LinguisticProcessingException(const char* mess):
23 LimaException(mess) {};
24 explicit LinguisticProcessingException(const std::string& mess):
25 LimaException(mess) {};
26 explicit LinguisticProcessingException(const QString& mess):
27 LimaException(mess) {};
28};
29
34#define LIMA_LP_EXCEPTION(X) { \
35 QString errorString; \
36 QTextStream qts(&errorString); \
37 qts << __FILE__ << ":" << __LINE__ << ": " << X ; \
38 LERROR << errorString; \
39 throw LinguisticProcessingException(errorString); \
40}
41
42} // LinguisticProcessing
43} // Lima
44
45
46
47#endif
The main LIMA exception class.
Definition LimaCommon.h:262
NAUTITIA.