Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
EventProcessor
detail
ExceptionCollector.cc
Go to the documentation of this file.
1
#include "
art/Framework/EventProcessor/detail/ExceptionCollector.h
"
2
3
#include <cassert>
4
5
using namespace
art
;
6
7
namespace
{
8
std::string
9
exception_msg_from_ptr(std::exception_ptr
const
eptr)
try
{
10
std::rethrow_exception(eptr);
11
}
12
catch
(
std::exception
const
&
e
) {
13
return
e.what();
14
}
15
}
// namespace
16
17
[[noreturn]]
void
18
art::detail::ExceptionCollector::rethrow
()
19
{
20
assert(!
empty
());
21
std::string
message
;
22
for
(
auto
const
e : exceptions_) {
23
message += exception_msg_from_ptr(e);
24
}
25
exceptions_.clear();
26
throw
collected_exception
{
move
(message)};
27
}
string
std::string string
Definition:
nybbler.cc:12
e
const double e
Definition:
gUpMuFluxGen.cxx:165
python.root_metadata.message
message
Definition:
root_metadata.py:29
art::detail::ExceptionCollector::rethrow
void rethrow()
Definition:
ExceptionCollector.cc:18
wirecell.gen.depos.move
def move(depos, offset)
Definition:
depos.py:107
ExceptionCollector.h
art
Definition:
BasicOptionsHandler.h:9
art::detail::collected_exception
Definition:
ExceptionCollector.h:44
fhicl::exception
cet::coded_exception< error, detail::translate > exception
Definition:
exception.h:33
util::empty
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.
Definition:
StdUtils.h:97
Generated by
1.8.11