Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: Exception [iOS]

  1. #21
    Quote Originally Posted by Dmitry Sazanovich View Post
    Would be nice to make a vote bw iOS programmers who are using this library, but I'm strongly sure that lib shouldn't throw exception.

    Agreed. I use iOS client version 1.4.3 build 163 but it is still throwing Exceptions even for NSError version methods, which sounds like a blasphemy to me.
    Exceptions should be caught at a lower level in the Lighstreamer code and converted to NSErrors.

    On another topic, I tried a quick integration test of the pod version, not to actually use it, just for future integration when it will be time to move to it.
    The thing is the pod is holding a static library, which makes it difficult/impossible to integrate in development pods:

  2. #22
    Join Date
    Feb 2012
    Bologna, Italy
    Hello Romano,

    in client libraries version 1.x, there are some exceptions that we still throw from NSError methods because they are due to programmer errors. E.g. unsubscribing a table twice. Apple itself resorts to exceptions in such situations, to make the developer aware of the problem quickly.

    Anyway, as stated before, since client library 2.0 the APIs have been redesigned and error handling is now fully asynchronous. No more exceptions or even NSErrors.

    Regarding difficulties with our pods, a dependency we rely upon is distributed exclusively as a static library. As far as we know, to distribute a framework linked to a static library requires distributing the static library too, so that would not make any improvement. If you have better information to share with us, regarding these issues, we will surely consider them and take any appropriate step to improve our product.

    Best regards,




Similar Threads

  1. Connection timed out on empty credentials on iOS [iOS]
    By Anatoly Gurfinkel in forum Client SDKs
    Replies: 9
    Last Post: July 6th, 2015, 04:24 PM
  2. iOS client API encoding issue
    By LS_Developer in forum Client SDKs
    Replies: 3
    Last Post: February 14th, 2013, 02:47 PM
  3. LS iOS LSCommand mode sample
    By mibrahim.youxel in forum Client SDKs
    Replies: 4
    Last Post: December 3rd, 2012, 09:49 AM
  4. Bandwidth in iOS
    By bor306 in forum Client SDKs
    Replies: 7
    Last Post: July 11th, 2012, 02:28 PM
  5. iOS Client Library Preview
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: March 28th, 2011, 03:06 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 01:32 PM.