I’m trying to write a handler for exceptions. I’ve noticed that sometimes it’s passed an Error object. (As opposed to an Exception object). I’d like to know:
- Some examples of what triggers this to happen
- Whether when an Error object is passed to the exception handler, is it always fatal?
- Can the Error object being thrown be caught, stopping it from being fatal? And if it isn’t caught, is it always fatal?
Thanks