Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
LuceneException.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef LUCENEEXCEPTION_H
8#define LUCENEEXCEPTION_H
9
10#include "Lucene.h"
11
12namespace Lucene {
13
65
66template <class ParentException, LuceneException::ExceptionType Type>
67class LPPAPI ExceptionTemplate : public ParentException {
68public:
69 ExceptionTemplate(const String& error = EmptyString, LuceneException::ExceptionType type = Type) : ParentException(error, type) {
70 }
71};
72
100}
101
102#endif
Definition LuceneException.h:67
ExceptionTemplate(const String &error=EmptyString, LuceneException::ExceptionType type=Type)
Definition LuceneException.h:69
std::string _what
Definition LuceneException.h:55
ExceptionType type
Definition LuceneException.h:52
String error
Definition LuceneException.h:53
virtual const char * what() const
ExceptionType getType() const
LuceneException(const String &error=EmptyString, LuceneException::ExceptionType type=Null)
String getError() const
ExceptionType
Definition LuceneException.h:17
@ StopFillCache
Definition LuceneException.h:41
@ FileNotFound
Definition LuceneException.h:23
@ IndexOutOfBounds
Definition LuceneException.h:26
@ NullPointer
Definition LuceneException.h:34
@ IllegalArgument
Definition LuceneException.h:24
@ LockObtainFailed
Definition LuceneException.h:28
@ OutOfMemory
Definition LuceneException.h:36
@ FieldReader
Definition LuceneException.h:22
@ Merge
Definition LuceneException.h:32
@ NumberFormat
Definition LuceneException.h:35
@ QueryParser
Definition LuceneException.h:38
@ AlreadyClosed
Definition LuceneException.h:19
@ StaleReader
Definition LuceneException.h:40
@ Compression
Definition LuceneException.h:20
@ IO
Definition LuceneException.h:27
@ MergeAborted
Definition LuceneException.h:31
@ Parse
Definition LuceneException.h:37
@ TooManyClauses
Definition LuceneException.h:44
@ TimeExceeded
Definition LuceneException.h:43
@ CorruptIndex
Definition LuceneException.h:21
@ Runtime
Definition LuceneException.h:39
@ NoSuchDirectory
Definition LuceneException.h:33
@ Temporary
Definition LuceneException.h:42
@ Null
Definition LuceneException.h:18
@ Lookahead
Definition LuceneException.h:30
@ IllegalState
Definition LuceneException.h:25
@ LockReleaseFailed
Definition LuceneException.h:29
@ UnsupportedOperation
Definition LuceneException.h:45
Definition AbstractAllTermDocs.h:12
ExceptionTemplate< FileNotFoundException, LuceneException::NoSuchDirectory > NoSuchDirectoryException
Definition LuceneException.h:95
ExceptionTemplate< RuntimeException, LuceneException::StopFillCache > StopFillCacheException
Definition LuceneException.h:82
ExceptionTemplate< RuntimeException, LuceneException::Merge > MergeException
Definition LuceneException.h:81
ExceptionTemplate< IOException, LuceneException::LockReleaseFailed > LockReleaseFailedException
Definition LuceneException.h:92
ExceptionTemplate< LuceneException, LuceneException::OutOfMemory > OutOfMemoryError
Definition LuceneException.h:74
ExceptionTemplate< RuntimeException, LuceneException::TimeExceeded > TimeExceededException
Definition LuceneException.h:83
ExceptionTemplate< LuceneException, LuceneException::Temporary > TemporaryException
Definition LuceneException.h:75
ExceptionTemplate< RuntimeException, LuceneException::IllegalState > IllegalStateException
Definition LuceneException.h:76
ExceptionTemplate< IllegalArgumentException, LuceneException::NumberFormat > NumberFormatException
Definition LuceneException.h:86
ExceptionTemplate< IOException, LuceneException::MergeAborted > MergeAbortedException
Definition LuceneException.h:93
ExceptionTemplate< LuceneException, LuceneException::Compression > CompressionException
Definition LuceneException.h:99
ExceptionTemplate< IOException, LuceneException::CorruptIndex > CorruptIndexException
Definition LuceneException.h:89
ExceptionTemplate< RuntimeException, LuceneException::TooManyClauses > TooManyClausesException
Definition LuceneException.h:84
ExceptionTemplate< LuceneException, LuceneException::Lookahead > LookaheadSuccess
Definition LuceneException.h:96
ExceptionTemplate< RuntimeException, LuceneException::UnsupportedOperation > UnsupportedOperationException
Definition LuceneException.h:85
ExceptionTemplate< LuceneException, LuceneException::Runtime > RuntimeException
Definition LuceneException.h:73
ExceptionTemplate< IllegalStateException, LuceneException::AlreadyClosed > AlreadyClosedException
Definition LuceneException.h:87
ExceptionTemplate< IOException, LuceneException::FileNotFound > FileNotFoundException
Definition LuceneException.h:90
ExceptionTemplate< RuntimeException, LuceneException::NullPointer > NullPointerException
Definition LuceneException.h:79
ExceptionTemplate< IOException, LuceneException::StaleReader > StaleReaderException
Definition LuceneException.h:94
ExceptionTemplate< LuceneException, LuceneException::Parse > ParseException
Definition LuceneException.h:97
ExceptionTemplate< LuceneException, LuceneException::IO > IOException
Definition LuceneException.h:88
ExceptionTemplate< LuceneException, LuceneException::QueryParser > QueryParserError
Definition LuceneException.h:98
ExceptionTemplate< IOException, LuceneException::LockObtainFailed > LockObtainFailedException
Definition LuceneException.h:91
ExceptionTemplate< RuntimeException, LuceneException::IllegalArgument > IllegalArgumentException
Definition LuceneException.h:77
ExceptionTemplate< RuntimeException, LuceneException::IndexOutOfBounds > IndexOutOfBoundsException
Definition LuceneException.h:78
ExceptionTemplate< RuntimeException, LuceneException::FieldReader > FieldReaderException
Definition LuceneException.h:80

clucene.sourceforge.net