Created
May 31, 2016 08:44
-
-
Save InstaRobot/103a108518575a079283a2259034d355 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@try | |
{ | |
// try | |
} | |
@catch (NSException *exception) | |
{ | |
// exception | |
} | |
@finally | |
{ | |
// finally | |
} | |
// Работа с исключениями | |
@try { | |
} @catch (MyCustomException *custom) { | |
} @catch (NSException *exception) { | |
} @catch (id value) { | |
} @finally { | |
} | |
// Перехват различных типов исключений. Обработчики должны работать по порядку в направлении от самого общего до самого конкретного исключения, а универсальный обработчик должен выполняться после всех остальных! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment