AddExceptionConverter Method
Definition
- Namespace
- Cuemon.Extensions.Text.Json.Converters
- Assemblies
- Cuemon.Extensions.Text.Json.dll
AddExceptionConverter(ICollection<JsonConverter>, bool, bool)
Adds an Exception JSON converter to the list.
public static ICollection<JsonConverter> AddExceptionConverter(this ICollection<JsonConverter> converters, bool includeStackTrace, bool includeData)
Parameters
convertersICollection<JsonConverter>The ICollection<T> to extend.
includeStackTraceboolThe value that determine whether the stack of an exception is included in the converted result.
includeDataboolThe value that determine whether the data of an exception is included in the converted result.
Returns
- ICollection<JsonConverter>
A reference to
convertersafter the operation has completed.