Forum Discussion
Hi
I have another request please. Currently errors are handled by delegating a view to the LIA_API object. This results in a UIAlert being generated by the Lithium framework. It would be better to pass back NSError objects via the delegate.
In our application, we use a custom notification view for displaying errors so the UIAlertView does not work. There could also be instances where we do not wish to notify the user of an error as we could wish to silently fail. Would it be possible to include the usage of NSErrors in your framework please?
Regards
Ash
Hi Ash,
For the NSErrors request, we don't have standard error codes to provide; so at best, you'd have an NSError object with a localized error string inside its userData hashmap. Does it make sense to just send back the error string in this case? Or do you still want it wrapped in an NSError object?
Jeff
Related Content
- 7 years ago
- 9 years ago
- 5 months ago