pub enum GmshError {
Initialization,
Execution,
CInterface,
ModelMutation,
ModelLookup,
ModelBadInput,
ModelParallelMeshQuery,
UnknownOption,
UnknownError,
}
Expand description
The error type for all Gmsh API functions.
Variants§
Initialization
The Gmsh context wasn’t properly initialized, or a required library component is missing.
For example, calling any fltk
functions without a linked FLTK library.
Execution
One of Gmsh’s “shell” methods couldn’t run successfully.
For example, a bad file path was given to the open
function.
CInterface
Errors from the Rust/C FFI interface.
ModelMutation
A function that mutates the model couldn’t complete successfully. For example, addPoint couldn’t succeed because of a tag collision.
ModelLookup
A data lookup getter function failed. For example, tried to work on a view that doesn’t exist.
ModelBadInput
The function couldn’t successfully use a required input parameter. For example, a user-specified quadrature scheme couldn’t be applied to the data.
ModelParallelMeshQuery
A parallelizable mesh query function failed
UnknownOption
The given option doesn’t exist in Gmsh.
UnknownError
Any unexpected error codes in the Gmsh API.