ExceptionExtensions.SetData method

namespace: Serenity   assemblySerenity.Net.Core

Sets custom exception data with given property name and value. Sets the data in base exception.

public static void SetData(this Exception exception, string property, object value)
parameter description
exception Exception to set custom data in.
property Custom exception data name.
value Custom exception data value.

See Also