Hello,
I'm testing HessianKit in a project, however I'm not being able to find out how can I handle exceptions which are thrown by HessianKit on forwarded calls.
On Cocoa apple forum I found similar problem, suggesting that Exceptions should be used only for unrecoverable errors. Is there any other way of handling errors using HessianKit? I'm using iOS SDK.
*** Terminating app due to uncaught exception 'NSInvalidArchiveOperationException', reason: 'Network error domain:NSURLErrorDomain code:-1004'
*** Call stack at first throw:
(
0 CoreFoundation 0x0139e5a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x014f2313 objc_exception_throw + 44
2 CoreFoundation 0x01356ef8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x01356e6a +[NSException raise:format:] + 58
4 MobileFS 0x000ceea5 -[CWDistantHessianObject(Private) sendRequestWithPostData:] + 426
5 MobileFS 0x000ce0d8 -[CWDistantHessianObject forwardInvocation:] + 118
6 CoreFoundation 0x0130fa04 ___forwarding___ + 1124
7 CoreFoundation 0x0130f522 _CF_forwarding_prep_0 + 50