Is it possible to handle all Errors in Java?
I know that Error is Throwable (so it can be handled) and Error handling
isn't best practice but suppose we have a requirement to catch all Error.
It is possible in general? I mean what about Errors which can appear in
daemon threads? They will crash jvm and I won't know about it.
And can I miss Error even if I surround main(String... args) with try-catch?
No comments:
Post a Comment