Based on the almost infinite nature of what COULD happen, it doesn't seem reasonable to handle every possible eventuality.
What I've got now, is an external error log, displaying the timestamp, the error description, the error number, and the line it occurred on (need line numbers for that one -...