The correct syntax was used for catching multiple exception types.