资讯

Java classifies exceptions into a few types: checked exceptions, unchecked exceptions, and errors, which must be handled by the JVM.
The bad aspects of Java exception handling include abuses such as using unchecked exceptions and catchall constructs. Both of these fall under the category of taking the easy way out.
Free Tutorial : Handling Errors using Exceptions - span stylefont-size small font-family courier new courierstrongHandling Errors using Exceptionsstrong spannbspspan st ...
A common software antipattern is to log and rethrow exceptions in Java. Here we explain why doing so will make troubleshooting errors harder.
For Java developers, extending Flex’s Error class and catching thrown Flex errors (either Error or any of its children) will seem very similar to exception handling in Java.