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 bd21d99Copy full SHA for bd21d99
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() const { return type; }
350
+ const object& get_value() const { return value; }
351
+ const object& get_trace() const { return trace; }
352
+
353
private:
354
object type, value, trace;
355
};
0 commit comments