|
Creating Exception Classes in Java
An Introduction |
|
Prof. David Bernstein
|
| Computer Science Department |
| bernstdh@jmu.edu |
try
and catch
throw
throws
Throwable Class
throw statementString
Throwable
that caused it to be thrown)
catch clause will be applied to
any exception or specialization of exception
(so you can catch multiple exceptions in one block
if they are derived from the same class)
| between classes in
the catch clause
Error or
RuntimeException