Coverage Report

Created: 2025-11-29 07:01

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/proc/self/cwd/external/antlr4-cpp-runtime~/runtime/src/Exceptions.cpp
Line
Count
Source
1
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2
 * Use of this file is governed by the BSD 3-clause license that
3
 * can be found in the LICENSE.txt file in the project root.
4
 */
5
6
#include "Exceptions.h"
7
8
using namespace antlr4;
9
10
1.78M
RuntimeException::RuntimeException(const std::string &msg) : std::exception(), _message(msg) {
11
1.78M
}
12
13
3
const char* RuntimeException::what() const noexcept {
14
3
  return _message.c_str();
15
3
}
16
17
//------------------ IOException ---------------------------------------------------------------------------------------
18
19
0
IOException::IOException(const std::string &msg) : std::exception(), _message(msg) {
20
0
}
21
22
0
const char* IOException::what() const noexcept {
23
0
  return _message.c_str();
24
0
}
25
26
//------------------ IllegalStateException -----------------------------------------------------------------------------
27
28
492
IllegalStateException::~IllegalStateException() {
29
492
}
30
31
//------------------ IllegalArgumentException --------------------------------------------------------------------------
32
33
0
IllegalArgumentException::~IllegalArgumentException() {
34
0
}
35
36
//------------------ NullPointerException ------------------------------------------------------------------------------
37
38
0
NullPointerException::~NullPointerException() {
39
0
}
40
41
//------------------ IndexOutOfBoundsException -------------------------------------------------------------------------
42
43
0
IndexOutOfBoundsException::~IndexOutOfBoundsException() {
44
0
}
45
46
//------------------ UnsupportedOperationException ---------------------------------------------------------------------
47
48
0
UnsupportedOperationException::~UnsupportedOperationException() {
49
0
}
50
51
//------------------ EmptyStackException -------------------------------------------------------------------------------
52
53
0
EmptyStackException::~EmptyStackException() {
54
0
}
55
56
//------------------ CancellationException -----------------------------------------------------------------------------
57
58
CancellationException::~CancellationException() {
59
}
60
61
//------------------ ParseCancellationException ------------------------------------------------------------------------
62
63
ParseCancellationException::~ParseCancellationException() {
64
}