Introduction to Java Exception Handling

本文深入探讨Java中的异常处理,包括基本的try-catch-finally结构、异常层次结构、已检查与未检查异常的区别等。此外,还介绍了如何通过模板和技术改进异常处理,使代码更加健壮且易于维护。

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
arrow-right-light-medium.pngIntroduction to Java Exception Handling
arrow-right-light-medium.pngBasic Try Catch Finally
arrow-right-light-medium.pngException Hierarchies
arrow-right-light-medium.pngChecked or Unchecked Exceptions?
arrow-right-light-medium.pngException Wrapping
arrow-right-light-medium.pngFail Safe Exception Handling
arrow-right-light-medium.pngPluggable Exception Handlers
arrow-right-light-medium.pngLogging: Where to Log Exceptions?
arrow-right-light-medium.pngValidation: Throw Exceptions Early
arrow-right-light-medium.pngValidation: Throw Exception or Return False?
arrow-right-light-medium.pngException Handling Templates
arrow-right-light-medium.pngException Enrichment
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值