libhext: C++ Library Documentation
1.0.13-b24695d
Loading...
Searching...
No Matches
hext
MaxSearchError.h
Go to the documentation of this file.
1
// Copyright 2021 Thomas Trapp
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef HEXT_MAXSEARCH_ERROR_H_INCLUDED
16
#define HEXT_MAXSEARCH_ERROR_H_INCLUDED
17
18
/// @file
19
/// Declares hext::MaxSearchError
20
21
#include "
hext/Visibility.h
"
22
23
#include <stdexcept>
24
#include <string>
25
26
27
namespace
hext
{
28
29
30
/// The exception that is thrown when max_searches reaches zero while calling
31
/// `Rule::extract`.
32
class
HEXT_PUBLIC
MaxSearchError
:
public
std::runtime_error
33
{
34
public
:
35
explicit
MaxSearchError
(
const
std::string& msg) noexcept
36
: std::runtime_error(msg)
// noexcept
37
{}
38
};
39
40
41
}
// namespace hext
42
43
44
#endif
// HEXT_MAXSEARCH_ERROR_H_INCLUDED
45
Visibility.h
Defines HEXT_PUBLIC and HEXT_PRIVATE.
HEXT_PUBLIC
#define HEXT_PUBLIC
Definition
Visibility.h:26
hext::MaxSearchError
The exception that is thrown when max_searches reaches zero while calling Rule::extract.
Definition
MaxSearchError.h:33
hext::MaxSearchError::MaxSearchError
MaxSearchError(const std::string &msg) noexcept
Definition
MaxSearchError.h:35
hext
Definition
AppendPipe.h:28
Generated by
1.9.8