Elements
6.0.1
A C++ base framework for the Euclid Software.
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
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
Logging.h
Logging facility.
Elements::Examples::log
auto log
Definition:
BackTraceExample.cpp:36
Elements::Examples::crashingFunction
ELEMENTS_API void crashingFunction()
Definition:
crashingFunction.cpp:31
std::logic_error
STL class.
Elements::Logging::getLogger
static Logging getLogger(const std::string &name="")
Definition:
Logging.cpp:63
crashingFunction.h
Generated by
1.8.5