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.
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.
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?
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.