Introduction to Java Exception Handling

http://tutorials.jenkov.com/java-exception-handling/index.html

Exception handling is a very important yet often neglected aspect of writing robust software. When an error occurs in a Java program it usually results in an exception being thrown. How you throw, catch and handle these exception matters. There are several different ways to do so. Not all are equally efficient and fail safe.

This trail digs deeper into exception handling in Java. The trail covers various do's and dont's of Java exception handling. It also covers a few techniques for efficient and less error prone exception handling. Hopefully you can benefit from some of these texts.

Most Popular on Java Exception Handling

The most popular texts in this Java exception handling tutorial are the texts on Exception Handling Templates and Exception Enrichment.

Table of Contents for Java Exception Handling Tutorial

Below is a list of the texts this trail Java Exception Handling contains. The list is repeated at the top right of every page in the trail.

  Java Exception Handling
Introduction to Java Exception Handling
Basic Try Catch Finally
Exception Hierarchies
Checked or Unchecked Exceptions?
Exception Wrapping
Fail Safe Exception Handling
Pluggable Exception Handlers
Logging: Where to Log Exceptions?
Validation: Throw Exceptions Early
Validation: Throw Exception or Return False?
Exception Handling Templates
Exception Enrichment

原文地址:https://www.cnblogs.com/cy163/p/1387117.html