Class WrappedExceptionData
Marshals 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: Azos
Assembly: Azos.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 Azos 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 |
FromBase64(String)
Creates an instance of WrappedExceptionData saturating it from base64-encoded BSON data. This method complements .ToBase64()
Declaration
public static WrappedExceptionData FromBase64(string base64)
Parameters
Type | Name | Description |
---|---|---|
System.String | base64 |
Returns
Type | Description |
---|---|
WrappedExceptionData |
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 |
ToBase64()
Serializes the instance as base64-encoded BSON data. This method complements .FromBase64(string)
Declaration
public string ToBase64()
Returns
Type | Description |
---|---|
System.String |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()