Exceptions#
The in-process API uses package-specific exceptions for invalid inputs and
native indexing failures. Native allocation failures use Python’s built-in
MemoryError.
- exception lauelab.indexing.LaueError[source]#
Base class for errors reported by the in-process indexing API.
Notes
Native allocation failures are reported as the built-in
MemoryErrorrather than as aLaueErrorsubclass.
- exception lauelab.indexing.InputError[source]#
Invalid geometry selection, parameters, frame data, or metadata.
This exception is both a
LaueErrorand aValueError, so callers may catch it either as a package-specific error or as invalid input.
- exception lauelab.indexing.IndexingError[source]#
Numerical or internal failure in a native indexing stage.
This exception is both a
LaueErrorand aRuntimeError. Its message identifies the failed stage and includes the native diagnostic.