AddExceptionConverter Method
Definition
- Namespace
- Cuemon.Xml.Serialization.Converters
- Assemblies
- Cuemon.Xml.dll
AddExceptionConverter(IDecorator<IList<XmlConverter>>, bool, bool)
public static IDecorator<IList<XmlConverter>> AddExceptionConverter(this IDecorator<IList<XmlConverter>> decorator, bool includeStackTrace, bool includeData)
Parameters
decoratorIDecorator<IList<XmlConverter>>The decorator that wraps the IList<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
- IDecorator<IList<XmlConverter>>
A reference to
decoratorafter the operation has completed.
Exceptions
- ArgumentNullException
decoratorcannot be null.