Skip to content

Commit

Permalink
Adding docstring for ExceptionRenderError.
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Habel <[email protected]>
  • Loading branch information
StefanHabel committed Oct 13, 2024
1 parent fe111f1 commit 2956e53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/PyMaterialX/PyMaterialXRender/PyShaderRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ void bindPyShaderRenderer(py::module& mod)
:see: https://materialx.org/docs/api/class_shader_renderer.html)docstring";

static py::exception<mx::ExceptionRenderError> pyExceptionRenderError(mod, "ExceptionRenderError");
mod.attr("ExceptionRenderError").doc() = R"docstring(
A type of exception that is raised when a rendering operation fails.
Optionally stores an additional error log, which can be used to
store and retrieve shader compilation errors.
:see: https://materialx.org/docs/api/class_exception_render_error.html)docstring";

py::register_exception_translator(
[](std::exception_ptr errPtr)
Expand Down

0 comments on commit 2956e53

Please sign in to comment.