CSC 171 – SPRING 1999

3/23/99


Click here to start


Table of Contents

CSC 171 – SPRING 1999

OVERVIEW OF LECTURE 17

Exceptions

Example – Your word processor

Why do we need error notification?

Why a special error facility?

Consider Code Complexity

Return values

When to use exceptions?

Terms

Basic control structure

Example

Example

Scopes

Coding for scope

Coding for scope

Finding a catcher

Throwing

Defining your own exception

Throwing your exception

Catching your Exception

Compilation issues

Finally

Use of finally

Author: Thaddeus F. Pawlicki