The errors.py
module#
Summary#
Provides error message when Geometry service passes a runtime error. |
|
Provides error message to raise when Geometry service has exited. |
Pass signal to the custom interrupt handler. |
|
Capture gRPC exceptions and raise a more succinct error message. |
Description#
Provides PyAnsys Geometry-specific errors.
Module detail#
- errors.handler(sig, frame)#
Pass signal to the custom interrupt handler.
- errors.protect_grpc(func)#
Capture gRPC exceptions and raise a more succinct error message.
This method captures the
KeyboardInterrupt
exception to avoid segfaulting the Geometry service.While this works some of the time, it does not work all of the time. For some reason, gRPC still captures SIGINT.
- errors.SIGINT_TRACKER = []#