Chapter 6. Exceptions
OOC
>
Object Oriented Computing
>
Exceptions
Chapter 6. Exceptions
Table of Contents
1. What are exceptions?
1.1. Definition
1.2. Throwing an exception
1.3. The exception object
1.4. Catching an exception
1.5. Advantages
2. Throwing exceptions
2.1. The throw Statement
2.2. The Throwable Class and Its Subclasses
3. Catch or specify requirement
3.1. Catch
3.2. Specify
3.3. Why Specify?
3.4. Checked Exceptions
3.5. Why not catch Runtime exceptions?
3.6. Do not make all of your's exceptions Runtime
3.7. Exceptions that can be thrown within the scope of the method
4. Catching and handling exceptions
4.1. The try Block
4.2. The catch Block(s)
4.3. Specialized Handler
4.4. General Handler
4.5. The finally Block
4.6. Putting It All Together
Copyright © 1998-2009 Dilvan Moreira