Tagged Questions
0
votes
0answers
54 views
Boost loads all registered exception with every method/function call
I saw in my call stack that Boost translates ALL my registered(register_exception_translator) exceptions always before executing class method. Every time!
That is madness and not good for ...
1
vote
1answer
165 views
boost::python export custom exception and inherit from Python's Exception
The accepted answer to boost::python Export Custom Exception shows how to export a custom exception class from C++, and Boost.Python custom exception class shows how to export an exception class that ...
5
votes
1answer
738 views
Boost.Python custom exception class
I'm implementing a Python extension module using Boost.Python. The module should define its own custom exception classes that inherit Exception. How do I do that?
1
vote
1answer
398 views
Python exception text on syntax errors (boost library)
I've got this code snnipet (the whole program compiles and links correctly):
...
try
{
boost::python::exec_file(
"myscript.py", // this file contains a syntax error
...
11
votes
2answers
2k views
boost::python Export Custom Exception
I am currently writing a C++ extension for Python using Boost::Python. A function in this extension may generate an exception containing information about the error (beyond just a human-readable ...
11
votes
3answers
3k views
How to get Python exception text
I want to embed python in my C++ application. I'm using Boost library - great tool. But i have one problem.
If python function throws an exception, i want to catch it and print error in my ...