Hi all,
I am adding/updating entry into Agenda.
But before that I check whether it already exist like this:

//Checking if entry exists
TRAPD(err, iEntry=iModel->FetchEntryL(uid));
if(err == KErrNotFound)
{
AddEntryToDoL();
}
else
{
UpdateEntryToDoL(uid);
delete iEntry;
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.

any clue
-nitin