I am adding/updating entry into Agenda.
But before that I check whether it already exist like this:
//Checking if entry exists
if(err == KErrNotFound)
iEntry = NULL;
Now at TRAPD, if entry doesn't exist, FetchEntryL should leave and return error KErrNotFound but strangely it returns an exception ???
If entry is found, TRAPD executes fine and returns entry into iEntry.