Loading [MathJax]/extensions/TeX/AMSmath.js
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
f
g
i
k
m
n
o
p
r
s
w
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
t
v
Enumerations
Enumerator
d
h
m
n
r
s
t
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
i
j
k
l
m
o
p
q
r
s
t
u
v
Enumerations
Enumerator
a
i
l
n
o
p
s
u
v
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Variables
a
b
c
g
h
i
m
p
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Macros
c
d
f
g
h
i
k
m
n
o
p
q
r
s
t
u
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
Loading...
Searching...
No Matches
RuntimeErrorStream.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010-2022 The ESPResSo project
3
*
4
* This file is part of ESPResSo.
5
*
6
* ESPResSo is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* ESPResSo is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#include "
error_handling/RuntimeErrorStream.hpp
"
21
#include "
error_handling/RuntimeErrorCollector.hpp
"
22
23
#include <string>
24
#include <utility>
25
26
namespace
ErrorHandling
{
27
// ostringstream is not copyable, but it is fine here to copy just the content.
28
RuntimeErrorStream::RuntimeErrorStream
(
const
RuntimeErrorStream
&rhs)
29
: m_ec(rhs.m_ec), m_line(rhs.m_line), m_file(rhs.m_file),
30
m_function(rhs.m_function) {
31
m_buff << rhs.m_buff.rdbuf();
32
}
28
RuntimeErrorStream::RuntimeErrorStream
(
const
RuntimeErrorStream
&rhs) {
…
}
33
34
RuntimeErrorStream::RuntimeErrorStream
(
RuntimeErrorCollector
&ec,
35
RuntimeError::ErrorLevel
level,
36
std::string file,
const
int
line,
37
std::string function)
38
: m_ec(ec), m_level(level), m_line(line), m_file(std::move(file)),
39
m_function(std::move(function)) {}
34
RuntimeErrorStream::RuntimeErrorStream
(
RuntimeErrorCollector
&ec, {
…
}
40
41
RuntimeErrorStream::~RuntimeErrorStream
() {
42
m_ec.
message
(m_level, m_buff.str(), m_function.c_str(), m_file.c_str(),
43
m_line);
44
}
41
RuntimeErrorStream::~RuntimeErrorStream
() {
…
}
45
46
}
// namespace ErrorHandling
RuntimeErrorCollector.hpp
RuntimeErrorStream.hpp
ErrorHandling::RuntimeErrorCollector
Definition
RuntimeErrorCollector.hpp:34
ErrorHandling::RuntimeErrorCollector::message
void message(RuntimeError message)
Definition
RuntimeErrorCollector.cpp:52
ErrorHandling::RuntimeErrorStream
Create a runtime error message via the streaming operator.
Definition
RuntimeErrorStream.hpp:33
ErrorHandling::RuntimeErrorStream::RuntimeErrorStream
RuntimeErrorStream(const RuntimeErrorStream &rhs)
Definition
RuntimeErrorStream.cpp:28
ErrorHandling::RuntimeErrorStream::~RuntimeErrorStream
~RuntimeErrorStream()
Definition
RuntimeErrorStream.cpp:41
ErrorHandling
Definition
RuntimeError.cpp:26
ErrorHandling::RuntimeError::ErrorLevel
ErrorLevel
The error level, warnings are only displayed to the user, errors are fatal.
Definition
RuntimeError.hpp:40
src
core
error_handling
RuntimeErrorStream.cpp
Generated on Fri Apr 18 2025 01:15:55 for ESPResSo by
1.9.8