Class RecoveredException
Override the Exception class, so that the Source, StackTrace, and TargetSite properties can be directly initialized.
Inheritance
Namespace: WizardWrx
Assembly: WizardWrx.Core.dll
Syntax
public class RecoveredException : Exception
Constructors
| Improve this Doc View SourceRecoveredException(SerializationInfo, StreamingContext)
Enable serialization by implementing the protected constructor that can recreate an exception from serialization data.
Declaration
protected RecoveredException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | Specify the SerializationInfo object from which to reconstruct the RecoveredException. |
StreamingContext | context | Specify the StreamingContext object from which to reconstruct the RecoveredException. |
RecoveredException(String, Exception, String, String, String)
Call this method when you have an InnerException Exception to preserve.
Declaration
public RecoveredException(string message, Exception innerException, string Source, string StackTrace, string TargetSite)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The usual message property, available to all Exception consumers |
Exception | innerException | The usual InnerException property, available to all Exception consumers |
System.String | Source | |
System.String | StackTrace | Gets a string representation of the immediate frames on the call stack |
System.String | TargetSite | Gets the method that throws the current exception |
RecoveredException(String, String, String, String)
Call this method when you have only a message to record.
Declaration
public RecoveredException(string message, string Source, string StackTrace, string TargetSite)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The usual message property, available to all Exception consumers |
System.String | Source | |
System.String | StackTrace | Gets a string representation of the immediate frames on the call stack |
System.String | TargetSite | Gets the method that throws the current exception |
Properties
| Improve this Doc View SourceSource
This is a stand-in for the Source property that is usually set by the runtime environment when an exception is thrown.
Declaration
public override string Source { get; }
Property Value
Type | Description |
---|---|
System.String |
StackTrace
This is a stand-in for the StackTrace property that is usually set by the runtime environment when an exception is thrown.
Declaration
public string StackTrace { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TargetSite
This is a stand-in for the TargetSite property that is usually set by the runtime environment when an exception is thrown.
Declaration
public string TargetSite { get; set; }
Property Value
Type | Description |
---|---|
System.String |