Errors and Warnings

Errors and Warnings#

core.errors.AmbiguousDataError([message])

Exception when data is ambiguous, for example, multiple active scalars can be set.

core.errors.DeprecationError([message])

Used for deprecated methods and functions.

plotting.errors.InvalidCameraError([message])

Exception when passed an invalid camera.

core.errors.InvalidMeshError([message])

Error for invalid mesh properties.

core.errors.InvalidMeshWarning

Warning for invalid mesh properties.

core.errors.MissingDataError([message])

Exception when data is missing, for example, no active scalars can be set.

core.errors.NotAllTrianglesError([message])

Exception when a mesh does not contain all triangles.

core.errors.PointSetCellOperationError([message])

Requested filter or property is not supported by the PointSet class.

core.errors.PointSetDimensionReductionError([...])

Requested filter or property is not supported by the PointSet class.

core.errors.PointSetNotSupported([message])

Requested filter or property is not supported by the PointSet class.

core.errors.PyVistaAttributeError([message])

Exception when accessing an attribute that is not part of the PyVista API.

core.errors.PyVistaDeprecationWarning

Non-supressed Deprecation Warning.

core.errors.PyVistaEfficiencyWarning

Efficiency warning.

core.errors.PyVistaFutureWarning

Non-supressed Future Warning.

core.errors.PyVistaPipelineError([message])

Exception when a VTK pipeline runs into an issue.

plotting.errors.RenderWindowUnavailable([...])

Exception when the render window is not available.

core.errors.VTKExecutionError([message])

Exception when a VTK output message is detected.

core.errors.VTKExecutionWarning

Warning when a VTK output message is detected.

core.errors.VTKVersionError([message])

Requested feature is not supported by the installed VTK version.

VTK Observers#

These classes observe events on VTK objects, such as errors, warnings, and the progress of an algorithm.

Observer(*args, **kwargs)

A standard class for observing VTK objects.

ProgressMonitor(*args, **kwargs)

A standard class for monitoring the progress of a VTK algorithm.

core.utilities.VtkErrorCatcher([...])

Context manager to temporarily catch VTK errors.

VTK Error Output#

These functions redirect the errors and warnings that VTK emits. To control how much VTK logs in the first place, see vtk_verbosity().

send_errors_to_logging()

Send all VTK error/warning messages to Python's logging module.

core.utilities.set_error_output_file(filename)

Set a file to write out the VTK errors.