|
Alexandria
2.27.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... | |
Public Member Functions inherited from Elements::Exception | |
| Exception (ExitCode e=ExitCode::NOT_OK) | |
| Exception (const char *message, ExitCode e=ExitCode::NOT_OK) | |
| Exception (const std::string &message, ExitCode e=ExitCode::NOT_OK) | |
| Exception (const char *stringFormat, Args &&...args) | |
| snprintf (message, len, stringFormat, std::forward< Args >(args)...) | |
| virtual | ~Exception () noexcept=default |
| const char * | what () const noexceptoverride |
| ExitCode | exitCode () const noexcept |
| void | appendMessage (const T &message) |
Public Member Functions inherited from std::exception | |
| T | what (T...args) |
| T | ~exception (T...args) |
| T | operator= (T...args) |
| T | exception (T...args) |
Private Attributes | |
| std::list< Location > | m_traceback |
Additional Inherited Members | |
Public Attributes inherited from Elements::Exception | |
| code | |
| char * | message |
| m_error_msg | |
| delete[] | message |
Protected Attributes inherited from Elements::Exception | |
| std::string | m_error_msg |
| const ExitCode | m_exit_code |
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, Elements::Exception::m_error_msg, 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 74 of file Exceptions.cpp.
References Elements::Logging::log(), m_traceback, and std::stringstream::str().

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