Exit
provide.foundation.process.exit
¶
TODO: Add module docstring.
Functions¶
exit_error
¶
Exit with error status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str | None
|
Optional error message to log before exiting |
None
|
code
|
int
|
Exit code to use (defaults to EXIT_ERROR) |
EXIT_ERROR
|
Source code in provide/foundation/process/exit.py
exit_interrupted
¶
Exit due to interrupt signal (SIGINT).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Message to log before exiting |
'Process interrupted'
|