previous | start | next

## Catching Exceptions

- Can have multiple `catch` clauses:

      try

      {

         code that may throw exceptions

      }

      catch (ExceptionType1 exception1)

      {

         handler for ExceptionType1

      }

      catch (ExceptionType2 exception1)

      {

         handler for ExceptionType2

      }

      . . .

- Can catch by superclass:
  `catch (IOException exception)
  ` catches `FileNotFoundException`

previous | start | next