ExceptionPropertyBag Class

Data from Exception suitable for serialization. Use Create(Exception) method to create an instance. If the exception implements IExceptionPropertyBagProvider, the interface is used to create a (derived) instance of ExceptionPropertyBag. Otherwise, the exception's public properties are added to Data dictionary.

Definition

Namespace: Quine.Schemas.Core.Eventing
Assembly: Quine.Schemas.Core (in Quine.Schemas.Core.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
C#
[DataContractAttribute(Namespace = "http://schemas.quine.no/core/v3_0.xsd")]
public class ExceptionPropertyBag : PropertyValueBag
Inheritance
Object    PropertyValueBag    ExceptionPropertyBag

Constructors

ExceptionPropertyBag Constrcutor.

Properties

Data Collection of key-value pairs. The property never returns null, but data is allocated only on first access.
(Inherited from PropertyValueBag)
ExceptionType The exception type.
HasData Used to check whether data dictionary is present without allocating it.
(Inherited from PropertyValueBag)
HResult From the exception.
InnerExceptions List of inner exceptions. This is either null or non-empty.
Message From the exception object.
Source From the exception.
TargetSite Parsed from the exception object. Includes full type name and method name.

Methods

Add Adds a value under key to Data. If either the key or the value is null, nothing is added to the data dictionary.
(Inherited from PropertyValueBag)
AddMembers(Object, FuncMemberInfo, Boolean) Adds public instance data members from o to Data. For compactness, null values are omitted.
(Inherited from PropertyValueBag)
AddMembers(Object, Int32) Convenience overload for the most common use of AddMembers(Object, FuncMemberInfo, Boolean): adding all of public fields and/or properties to the bag.
(Inherited from PropertyValueBag)
Create Creates an instance of ExceptionPropertyBag.
Flatten Flattens this into a DFS-ordered list. The list contains the same instances, with preserved inner exceptions.

Fields

Exception The actual exception that this instance describes.
NestingLevel The exception's nesting level. The root exception has level 0.

See Also