Class WrappedExceptionData
Marshalls exception details
Inheritance
System.Object
WrappedExceptionData
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NFX
Assembly: NFX.dll
Syntax
[Serializable]
[BSONSerializable("A339F46F-6637-4396-B148-094BAFFB4BE6")]
public sealed class WrappedExceptionData : IBSONSerializable, IBSONDeserializable
Constructors
WrappedExceptionData(Exception, Boolean)
Initializes instance form local exception
Declaration
public WrappedExceptionData(Exception error, bool captureStack = true)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | error | |
System.Boolean | captureStack |
Properties
ApplicationName
Returns the name of remote application
Declaration
public string ApplicationName { get; }
Property Value
Type | Description |
---|---|
System.String |
Code
Returns the code of remote NFX exception
Declaration
public int Code { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
InnerException
Returns the inner remote exception if any
Declaration
public WrappedExceptionData InnerException { get; }
Property Value
Type | Description |
---|---|
WrappedExceptionData |
Message
Returns the message of remote exception
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |
Source
Name of the object that caused the error
Declaration
public string Source { get; }
Property Value
Type | Description |
---|---|
System.String |
StackTrace
Returns stack trace
Declaration
public string StackTrace { get; }
Property Value
Type | Description |
---|---|
System.String |
TypeName
Returns the name of remote exception type
Declaration
public string TypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
WrappedData
Returns wrapped date from IWrappedDataSource
Declaration
public string WrappedData { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DeserializeFromBSON(BSONSerializer, BSONDocument, ref Object)
Declaration
public void DeserializeFromBSON(BSONSerializer serializer, BSONDocument doc, ref object context)
Parameters
Type | Name | Description |
---|---|---|
BSONSerializer | serializer | |
BSONDocument | doc | |
System.Object | context |
IsKnownTypeForBSONDeserialization(Type)
Declaration
public bool IsKnownTypeForBSONDeserialization(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
System.Boolean |
SerializeToBSON(BSONSerializer, BSONDocument, IBSONSerializable, ref Object)
Declaration
public void SerializeToBSON(BSONSerializer serializer, BSONDocument doc, IBSONSerializable parent, ref object context)
Parameters
Type | Name | Description |
---|---|---|
BSONSerializer | serializer | |
BSONDocument | doc | |
IBSONSerializable | parent | |
System.Object | context |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()