//любой метод может выбросить ошибку+(void) methodWithException { @throw [NSException exceptionWithName:@"TestException" reason:@"test exception" userInfo:nil];}