CreateException Method
Definition
- Namespace
- Cuemon.Reflection
- Assemblies
- Cuemon.Core.dll
CreateException(IDecorator<Stack<IList<MemberArgument>>>, bool)
Converts the underlying Stack<T> of the decorator that has one or more sequences of MemberArgument into an Exception.
This API supports the product infrastructure and is not intended to be used directly from your code.
public static Exception CreateException(this IDecorator<Stack<IList<MemberArgument>>> decorator, bool parseAsXml = false)
Parameters
decoratorIDecorator<Stack<IList<MemberArgument>>>The IDecorator<T> to extend.
parseAsXmlboolWhen
true, the Message is parsed using\nas newline; otherwise NewLine is used. Reason for this design is explained here: https://www.w3.org/TR/REC-xml/#sec-line-ends
Returns
Exceptions
- ArgumentNullException
decoratorcannot be null.