The errors.py module#

Summary#

DpfValueError

Error raised when a specific DPF error value must be defined.

InvalidTypeError

Error raised when a parameter has the wrong type.

LocationError

Error raised when using an invalid location.

ComplexPlottingError

Error raised when attempting to plot a field with complex data.

FieldContainerPlottingError

Error raised when attempting to plot a fields_container containing multiple fields.

EmptyMeshPlottingError

Error raised when attempting to plot data with no mesh.

InvalidANSYSVersionError

Error raised when the Ansys version is invalid.

InvalidPortError

Error raised when used an invalid port when starting DPF.

ServerTypeError

Error raised when using a functionality unavailable for this server type.

protect_source_op_not_found

Capture DPF’s Server exceptions when a source operator is not found and return a more succinct error message.

Description#

Errors.

Module detail#

errors.protect_source_op_not_found(func)#

Capture DPF’s Server exceptions when a source operator is not found and return a more succinct error message.