阅读背景:

如何在SWIG包装器库中将C ++异常传播到Python?

来源:互联网 

I'm writing a SWIG wrapper around a custom C++ library which defines its own C++ exception types. The library's exception types are richer and more specific than standard exceptions. (For example, one class represents parse errors and has a collection of line numbers.) How do I propagate those exceptions back to Python while preserving the type of the exception?I'm writing a SWIG wrapper around a custom C++




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: