Feature #1822

SWIG: how to report error details from the method overloaded in Python.

Added by pospelov over 3 years ago. Updated about 3 years ago.

Status:ResolvedStart date:27 Jun 2017
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


DrawObserver is a Python class derived from IFitObserver (C++).
In the case of error in Python code in overloaded IFitObserver::update() method,
SWIG reports

> terminate called after throwing an instance of 
> 'Swig::DirectorMethodException'
>    what():  SWIG director method error. Error detected when calling 
> 'IFitObserver.notify'
> Abandon

Is it possible to make SWIG capturing error messages from Python interpreter?


#1 Updated by dmitry about 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF