A search reports its errors by this event, and its result tells them in Warnings as well, see Search.
Examples
The example demonstrates how to use the event.
stringindexFolder=@"c:\MyIndex\";stringdocumentsFolder=@"c:\MyDocuments\";stringquery="Einstein";// Creating an indexIndexindex=newIndex(indexFolder);// Subscribing to the eventindex.Events.ErrorOccurred+=(sender,args)=>{Console.WriteLine(args.Message);};// Indexing documents from the specified folderindex.Add(documentsFolder);// Searching in the indexSearchResultresult=index.Search(query);