ObjectiveC主动抛出异常 NSException *ex = [[NSException alloc] initWithName:@"MyException" reason:@"b=0" userInfo:nil]; @throw(ex);