Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • APILoadError: the Maxwell plug-in is not present or there's a mismatch between the Python API and the C++ API (the latter indicates an installation problem). The object contains a string description of the problem.
  • ExporterStateError: the function call is invalid in the current state of the exporter. For example, you can only create meshes when the exporter is running. The string value mentions the name of the failed function and the state in which it can be called.
  • ParameterError: an invalid parameter was passed, e.g. declaring that a mesh has 10 vertices and then only passing 9 in SetPositions().
In a few cases which do not fall into the categories above, maxwell.Error is thrown directly (e.g. out of memory conditions, or I/O error while trying to read a material from a MXM file). The string value of all the exception will contain objects contains a human-readable description of the error.

...