| 126 | { |
| 127 | |
| 128 | void pyThrowWrappedBaseException(const Base::Exception& e, bool report) |
| 129 | { |
| 130 | if (report) { |
| 131 | e.reportException(); |
| 132 | } |
| 133 | throw Py::Exception(e.getPyExceptionType(), fmt::format("FreeCAD exception thrown ({})", e.what())); |
| 134 | } |
| 135 | |
| 136 | void pyThrowWrappedStdException(const std::exception& e, bool report) |
| 137 | { |
no test coverage detected