You specify what to do in the event that the exception is an instance of the
IOException
class by writing the keyword catch
,
followed by a parameter typed by IOException
, surrounded by
parentheses, followed by another block:
catch (IOException e) { ... }