我使用NSFileHandle将数据写入文件。NSFilehandle*handle=[NSFileHandlefileHandleForWritingAtPath:@"path/of/file"];@try{[handlewritedata:data];}@catch(NSException*e){//whenexceptionoccur,nevergothereNSLog(@"%@",e);}由于我的设备磁盘空间已满,调用writedata将失败。但我无法捕获异常。我的程序日志信息:2014-05-2316:17:24.435mytest[12919:3203]Anuncaught