Show / Hide Table of Contents

Class RecoveredException

Override the Exception class, so that the Source, StackTrace, and TargetSite properties can be directly initialized.

Inheritance
System.Object
RecoveredException
Namespace: WizardWrx
Assembly: WizardWrx.Core.dll
Syntax
public class RecoveredException : Exception

Constructors

| Improve this Doc View Source

RecoveredException(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.

| Improve this Doc View Source

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

| Improve this Doc View Source

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 Source

Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX