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
System.Exception
RecoveredException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.HelpLink
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: WizardWrx
Assembly: WizardWrx.Core.dll
Syntax
public class RecoveredException : Exception, ISerializable, _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
System.Runtime.Serialization.SerializationInfo info

Specify the SerializationInfo object from which to reconstruct the RecoveredException.

System.Runtime.Serialization.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

System.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
Overrides
System.Exception.Source
| 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

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
  • Improve this Doc
  • View Source
Back to top Generated by DocFX