Class WrappedException
Represents exception that contains data about causing exception with all of it's chain
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos
Assembly: Azos.dll
Syntax
[Serializable]
[BSONSerializable("A43ABD0D-22B2-4012-8A24-280A038FD943")]
public sealed class WrappedException : AzosException, ISerializable, IBSONSerializable, IBSONDeserializable
Constructors
WrappedException(WrappedExceptionData)
Declaration
public WrappedException(WrappedExceptionData data)
Parameters
Type | Name | Description |
---|---|---|
WrappedExceptionData | data |
WrappedException(String, WrappedExceptionData)
Declaration
public WrappedException(string message, WrappedExceptionData data)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
WrappedExceptionData | data |
Fields
WRAPPED_FLD_NAME
Declaration
public const string WRAPPED_FLD_NAME = "WE-W"
Field Value
Type | Description |
---|---|
System.String |
Properties
Wrapped
Returns wrapped exception data
Declaration
public WrappedExceptionData Wrapped { get; }
Property Value
Type | Description |
---|---|
WrappedExceptionData |
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 |
ForException(Exception, Boolean)
Returns an exception wrapped into WrappedException. If the exception is already wrapped, it is returned as-is
Declaration
public static WrappedException ForException(Exception root, bool captureStack = true)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | root | |
System.Boolean | captureStack |
Returns
Type | Description |
---|---|
WrappedException |
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
Overrides
IsKnownTypeForBSONDeserialization(Type)
Declaration
public bool IsKnownTypeForBSONDeserialization(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
System.Boolean |
MakeFromBSON(BSONSerializer, BSONDocument)
Declaration
public static WrappedException MakeFromBSON(BSONSerializer serializer, BSONDocument doc)
Parameters
Type | Name | Description |
---|---|---|
BSONSerializer | serializer | |
BSONDocument | doc |
Returns
Type | Description |
---|---|
WrappedException |
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 |
Implements
System.Runtime.Serialization.ISerializable