Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I tried to use a specific Exception handler

public override void ItemAdding(SPItemEventProperties properties)
{
try
{
incidentManagementRepository.WriteToHistory(
string.Format(CultureInfo.CurrentCulture, TaskCreatedMessage,
properties.AfterProperties[TitleField]));
}
catch (Exception ex)
{
ListExceptionHandler handler = new ListExceptionHandler();
handler.HandleListItemEventException(ex, properties,
Resources.HandleListItemEventExceptionValue);
}
}

but it raise the error
The type or namespace name 'ListExceptionHandler' could not be found (are you missing a using directive or an assembly reference?)
and there is no reference to add it to my code.

What I have tried:

https://msdn.microsoft.com/en-us/library/ff647598.aspx
Posted
Updated 31-Jul-16 10:29am

1 solution

ListExceptionHandler doesn't exist anywhere in the .NET Framework or SharePoint.

Try reading the article you linked to:
Quote:
ListExceptionHandler is a helper class declared in the Partner Portal application's Contoso.Common project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900