|
Alexandria
2.25.0
SDC-CH common library for the Euclid project
|
#include <Exceptions.h>


Classes | |
| struct | Location |
| Traceback location. More... | |
Public Member Functions | |
| Exception () | |
| const std::list< Location > & | getTraceback () const |
| const Exception & | log (log4cpp::Priority::Value level, Elements::Logging &logger) const |
| Log error message and traceback. More... | |
Private Attributes | |
| std::list< Location > | m_traceback |
Exception class Used to wrap Python exceptions so the caller code can handle them transparently
Definition at line 32 of file Exceptions.h.
| Pyston::Exception::Exception | ( | ) |
Constructor The error message is retrieved from the exception thrown inside Python
Definition at line 30 of file Exceptions.cpp.
References Pyston::Exception::Location::filename, Pyston::Exception::Location::funcname, Pyston::Exception::Location::lineno, and m_traceback.
| auto Pyston::Exception::getTraceback | ( | ) | const |
| const Exception & Pyston::Exception::log | ( | log4cpp::Priority::Value | level, |
| Elements::Logging & | logger | ||
| ) | const |
Log error message and traceback.
Definition at line 72 of file Exceptions.cpp.
References logger, m_traceback, and std::stringstream::str().

Definition at line 59 of file Exceptions.h.
Referenced by Exception(), getTraceback(), and log().