Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <ExceptionRaiser.h>
Public Member Functions | |
ExceptionRaiser (const std::string &msg, bool recoverable) | |
void | operator() (const std::shared_ptr< Node< T > > &) |
Private Attributes | |
std::string | m_msg |
bool | m_recoverable |
Convenience functor that just raises a Python error whenever called. It can be used to attach methods that can only fail to Python objects.
T | Node type |
Definition at line 37 of file ExceptionRaiser.h.
|
inline |
Constructor
msg | Message for the exception |
recoverable | If true, the exception is considered to be recoverable (fallback python evaluation) |
Definition at line 46 of file ExceptionRaiser.h.
|
inline |
Callable
boost::python::error_already_set | Always. It will set previously a RuntimeError with the given message. |
Definition at line 53 of file ExceptionRaiser.h.
References std::string::c_str(), Pyston::ExceptionRaiser< T >::m_msg, and Pyston::ExceptionRaiser< T >::m_recoverable.
|
private |
Definition at line 61 of file ExceptionRaiser.h.
Referenced by Pyston::ExceptionRaiser< T >::operator()().
|
private |
Definition at line 62 of file ExceptionRaiser.h.
Referenced by Pyston::ExceptionRaiser< T >::operator()().