CIS 3931 - Elementary Java Programming
Chapter 13 Code Examples
- Example that illustrates claiming, throwing, and catching
exceptions
- Rational.java
- Rational class (fractions) example, with a method that throws an
exception if division by zero occurs
- TestRationalException.java
- a test program that uses this method, and catches this exception
if necessary
- An example that involves the creation of a custom exception class