Backendless Support
 
Answered

fileService blocking method exception handling

In BE 4.0 for iOS the blocking fileService apis no longer take an NSError argument. The header file says its a sync method with a fault return as exception.

What is the proper way to handle errors for the blocking calls? Should we be wrapping them with @try/catch?

Leave a Comment

Comments (2)

photo
1

The proper way is to wrap the calls with try/catch, the documentation talks about it here:

https://backendless.com/docs/ios/doc.html#shared_error_handling

photo
1

Doh! missed that part in the docs. Thanks!

photo