Results 1 to 10 of 22

Thread: Exception [iOS]

Hybrid View

  1. #1
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Hi Dmitry,

    Thank you very much for the feedback provided in this thread.

    We will take one or two weeks to ponder on this and get back to you.

    Cheers,

    Alessandro

  2. #2
    Thanks! Looking forward

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Dmitry,

    As anticipated, we have been working on a plan to improve the lib based on the suggestions we received.

    The short-term solution is a new release of the iOS client API, which will be available very soon (hopefully before the holiday season) as part of Lightstreamer 6.0.

    For every method that may throw an exception, a corresponding non-exception-throwing version will be provided. This alternative method has the same semantic, parameters and return values, except for an additional NSError pointer reference that may be used (if not nil) to store a runtime error. For example:

    Code:
    @try {
        [client openConnectionWithInfo:connectionInfo delegate:self];
    } @catch (NSException *e) {
        // Exception handling
    }
    May be replaced by:

    Code:
    NSError *error= nil;
    [client openConnectionWithInfo:connectionInfo delegate:self error:&error];
    if (error) {
       // Error handling
    }
    Note that exceptions due to programming errors (such as out-of-bounds access to arrays, etc.) may still be thrown.

    The long-term solution was already part of the roadmap. A brand new API will be released on the future, base on the "unified client api" model, which has already been rolled out for JavaScript. The other languages will follow. The unified api is fully asynchronous and throws exceptions only in case of malformed parameters, etc.

    Hope that helps.

    Thanks,
    Alessandro

 

 

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

Bookmarks

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 07:53 PM.