The errors.py
module#
Summary#
Raises an error when the version of Mechanical is invalid. |
|
Raises an error when Mechanical passes a runtime error. |
|
Raises an error when Mechanical has exited. |
Pass signal to custom interrupt handler. |
|
Capture gRPC exceptions and return a more succinct error message. |
List of SIGINT keyboard interrupts. |
Description#
PyMechanical-specific errors.
Module detail#
- errors.handler(sig, frame)#
Pass signal to custom interrupt handler.
- errors.protect_grpc(func)#
Capture gRPC exceptions and return a more succinct error message.
Capture KeyboardInterrupt to avoid segfaulting Mechanical.
This works some of the time, but not all the time. For some reason gRPC still captures SIGINT.
- errors.SIGINT_TRACKER = []#
List of SIGINT keyboard interrupts.