I have a situation where I want control to return to the main script when an error occurs in an object. There the main script can decide how to deal with the error.
How can I improve my design here? Is it a bad practice to catch an error and then call die again?
There seem to be many approaches to the art of error handling. I am not sure of the best practice here. If an error occurs in Object C, I would like to destroy the chain of objects A-B-C, log their errors, and return to Main to process the error.