//任何方法都可能抛出错误+(void) methodWithException { @throw [NSException exceptionWithName:@"TestException" reason:@"test exception" userInfo:nil];}