objective-c : handle iOS error meggages