Support Topics Documentation Slack YouTube Blog

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?

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

Doh! missed that part in the docs. Thanks!