I didn't say this is error handling, this is a stack trace for debugging on error.
Similar to an uncaught exception in other languages. And yes, I will not use this on production applications or libraries, I mostly use this in scripts where this kind of thing makes sense.
In fact, this is the opposite of error handling. In any serious application this might be worse than ignoring errors