×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    76

    RConnection::Start error codes

    Hi
    I am trying to provide some error handling for my network connection class.

    I am using the RConnection::Start method asynchronously to start the connection and I need to know if the
    error code KErrNotFound will *only* be returned by my RunL if no access points have been defined.

    The SDK help isn't really helpful here

    thanks in advance

    guus davidson

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037
    Hi,

    what about such RunL() method:

    void RunL()
    {
    TInt statusCode = iStatus.Int();
    switch (statusCode)
    {
    case KErrNone: // Connection created succesfully
    {
    ...
    break;
    }

    case KErrNotFound: // Connection failed
    {
    ...
    break;
    }

    case KErrCancel: // Connection attempt cancelled
    {
    ...
    break;
    }

    case KErrAlreadyExists: // Connection already exists
    {
    ...
    break;
    }

    default:
    {
    // Use text resolver to resolve error text
    ...
    break;
    }
    }
    }

    Bye,
    STeN

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    76
    thanks for the answer Stenlik

    but maybe my original post wasn't clear enough.

    you've posted the following code,

    case KErrNotFound: // Connection failed
    {
    ...
    break;
    }

    What I want to know is if I get the error KErrNotFound, can I assume it is because there are non APN's in the comms db, or can this error code be produced for some other error.

    I suppose I could always just query the comms db for this info, but it seems a bit over kill.

    thanks in advance
    guus davidson

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    3

    Re: RConnection::Start error codes

    What constant would be in the "case" block, if RunL() gets error code -30180? Can someone tell, what this error (-30180) is? Where to see its description?

    Thanks

  5. #5
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: RConnection::Start error codes

    Hi,

    according to list here: http://www3.symbian.com/faq.nsf/0/6A...3?OpenDocument it is platform specific code, i.e. S60 related error.

    Unfortunately even the biggest error list here http://www.newlc.com/Symbian-OS-Error-Codes.html does not contain yours

    Hard to find out the description and root cause of your problem unfortunately - you can display the error to the user in the dialog like "Connection failed(-30180) Try again?" and let him decide. Set the engine to the initial state and if user press "Yes" try to reconnect.

    The only related post I have found here:
    http://discussion.forum.nokia.com/fo...d.php?t=110947. Might be you can ask here, where he gets the error description and then put it here.

    Regards,
    STeN

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×