Elements  6.2
A C++ base framework for the Euclid Software.
crashingFunction.cpp
Go to the documentation of this file.
1 
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 
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