Elements
6.2
A C++ base framework for the Euclid Software.
ElementsExamples
src
lib
default
crashingFunction.cpp
Go to the documentation of this file.
1
22
#include "
ElementsExamples/crashingFunction.h
"
23
24
#include <stdexcept>
// for the logic_error
25
26
#include "
ElementsKernel/Logging.h
"
// for the Logging
27
28
namespace
Elements
{
29
namespace
Examples {
30
31
void
crashingFunction
() {
32
auto
log
=
Logging::getLogger
(
"ElementsExamples"
);
33
log
.info() <<
"Entering Crashing Function"
;
34
35
throw
std::logic_error
(
"arrg!"
);
36
}
37
38
}
// namespace Examples
39
}
// namespace Elements
Elements::Examples::crashingFunction
ELEMENTS_API void crashingFunction()
Definition:
crashingFunction.cpp:31
crashingFunction.h
std::logic_error
STL class.
Elements::Examples::log
auto log
Definition:
BackTrace.cpp:36
Elements::Logging::getLogger
static Logging getLogger(const std::string &name="")
Definition:
Logging.cpp:63
Logging.h
Logging facility.
Elements
Definition:
callBackExample.h:35
Generated by
1.8.17