PPT Slide
Something you can do with exceptions:
try {
...
} // try
catch (QueueFullException e) {
...
} // catch QueueFullException
catch (IOException e) {
...
} // catch IOException
catch (Exception e) {
...
// this will catch any other kind of exception
// since all exceptions extend Exception
} // catch base Exception
Inheritance and Exceptions
“catch-all” handler
Previous slide
Next slide
Back to first slide
View graphic version