Reference

Exceptions

Syntax,

  try
  {
    statements;
    more statements;
  }
  catch (exceptionTypeA e)
  {
    code to handle exceptions of exceptionTypeA;
  }
  catch (exceptionTypeB e)
  {
    code to handle exceptions of exceptionTypeB;
  }
  finally
  {
    code to execute in all circumstances;
  }