When porting Java code to ObjC, how best to represent checked exceptions?

后端 未结 6 927
梦如初夏
梦如初夏 2021-02-09 01:08

I am working on porting a Java codebase to Cocoa/Objective-C for use on desktop Mac OS X. The Java code has lots and lots of methods with checked exceptions li

6条回答
  •  旧时难觅i
    2021-02-09 01:45

    Its looks like these checked exceptions more cleanly map to out errors. Exceptions could still be used, but should be reserved for exceptional circumstances.

提交回复
热议问题