Hi gues,
i’ve followed the quick start guide for ios step by step (twice) for my first new app on backendless…BUT
as you see from the pictures that i’ve attach them here … when i Run the Simulator it crashes and give me this message…
2016-02-11 13:36:43.338 AlQattah[4254:143642] *** Terminating app due to uncaught exception of class ‘Fault’
libc++abi.dylib: terminating with uncaught exception of type Fault
(lldb)
Whats Wrong ?
Hi!
First of all you can follow this example:https://github.com/Backendless/BlogFeatureDay-iOS/tree/master/F2RegisteringUsers
I recommend you to add try/catch block to handle fault.
This is what it would look like:
Types.tryblock({ () -> Void in
// all of [url=https://monosnap.com/file/KsS520jBJtWo4mtuC5ayLCsuTVmWcs]this code[/url] would go here
},
catchblock: { (exception) -> Void in
print("Server reported an error: \(exception as! Fault)")
})
But do I have to add try/catch block to handle fault. to every action ( add user…update user…delete user…relation data…etc) ???
It is recommended to handle faults in your app, otherwise, if there is an error, the application will crash.