Показать сообщение отдельно
Старый 13.10.2016, 17:31   #1  
Aquarius is offline
Aquarius
Участник
 
139 / 29 (1) +++
Регистрация: 08.02.2007
Адрес: Одесса
вопрос Отработка exception -перевод на русский язык
Добрый день,
Dax2012.
Извините за ,возможно,примитивный вопрос,связанный со сложностями перевода. Английский знаю хорошо,но тут какое то непонимание возникло у меня.
Смотрела вопросы по экзаменам.Есть следующие два высказывания:
1. If the catch list has no block that specifies the particular exception, the system passes the exception to the catch list of the next innermost try block.

2. If the catch list has no block that specifies the particular exception, the system passes the exception to the catch list of the next outermost try block.

Я полагаю, что правильно второе высказывание,т.е. происходит Переход во внешний try block.
но на сайте https://msdn.microsoft.com/en-us/library/aa893385.aspx сказано следующее.
If a catch is found that handles the kind of exception that is being thrown, program control jumps to that catch block. If the catch list has no block that specifies the particular exception, the system passes the exception to the catch list of the next innermost try block.
Подскажите, пожалуйста,Получается правильно первое высказывание?

Последний раз редактировалось Aquarius; 13.10.2016 в 17:51.