Spawns a new thread to run the provided function function in a recoverable manner.
If the function function panics during execution, the panic will be caught, and the thread
will terminate without crashing the entire program.
Spawns a recoverable function with an error-handling function in a new thread.
Executes an error-handling function with a given error message within a panic-safe context.
Executes a recoverable function within a panic-safe context.
Converts a panic-captured error value into a string.