We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b884c commit ced5cf9Copy full SHA for ced5cf9
include/pybind11/pytypes.h
@@ -346,6 +346,10 @@ class error_already_set : public std::runtime_error {
346
/// the given tuple.
347
bool matches(handle ex) const { return PyErr_GivenExceptionMatches(ex.ptr(), type.ptr()); }
348
349
+ const object& get_type() { return type; } const
350
+ const object& get_value() { return value; } const
351
+ const object& get_trace() { return trace; } const
352
+
353
private:
354
object type, value, trace;
355
};
0 commit comments