Table of Contents

AddExceptionConverter Method

Definition

AddExceptionConverter(IDecorator<IList<XmlConverter>>, bool, bool)

Adds an Exception XML converter to the enclosed IList<T> of the specified decorator.

public static IDecorator<IList<XmlConverter>> AddExceptionConverter(this IDecorator<IList<XmlConverter>> decorator, bool includeStackTrace, bool includeData)

Parameters

decorator IDecorator<IList<XmlConverter>>

The decorator that wraps the IList<T> to extend.

includeStackTrace bool

The value that determine whether the stack of an exception is included in the converted result.

includeData bool

The value that determine whether the data of an exception is included in the converted result.

Returns

IDecorator<IList<XmlConverter>>

A reference to decorator after the operation has completed.

Exceptions

ArgumentNullException

decorator cannot be null.