|
||||
File indexing completed on 2025-01-18 10:17:53
0001 #pragma once 0002 #include "pybind11_tests.h" 0003 0004 #include <stdexcept> 0005 0006 // shared exceptions for cross_module_tests 0007 0008 class PYBIND11_EXPORT_EXCEPTION shared_exception : public pybind11::builtin_exception { 0009 public: 0010 using builtin_exception::builtin_exception; 0011 explicit shared_exception() : shared_exception("") {} 0012 void set_error() const override { PyErr_SetString(PyExc_RuntimeError, what()); } 0013 };
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |