C# Class NetMQ.ReactiveExtensions.ExceptionXElement

Intent: Represent an exception as XML data. In the Visual Studio debugger view for a variable, we can "View as XML" to see a formatted version. https://seattlesoftware.wordpress.com/2008/08/22/serializing-exceptions-to-xml/
Inheritance: System.Xml.Linq.XElement
ファイルを表示 Open project: NetMQ/NetMQ.ReactiveExtensions Class Usage Examples

Public Methods

Method Description
ExceptionXElement ( Exception exception ) : System

Create an instance of ExceptionXElement.

ExceptionXElement ( Exception exception, bool omitStackTrace ) : System

Create an instance of ExceptionXElement.

Method Details

ExceptionXElement() public method

Create an instance of ExceptionXElement.
public ExceptionXElement ( Exception exception ) : System
exception System.Exception The Exception to serialize.
return System

ExceptionXElement() public method

Create an instance of ExceptionXElement.
public ExceptionXElement ( Exception exception, bool omitStackTrace ) : System
exception System.Exception The Exception to serialize.
omitStackTrace bool /// Whether or not to serialize the Exception.StackTrace member /// if it's not null. ///
return System