Table of Contents

Class ExceptionInfo

Namespace
NanoByte.Common.Info
Assembly
NanoByte.Common.dll

Wraps information about an exception in a serializer-friendly format.

public class ExceptionInfo
Inheritance
object
ExceptionInfo
Extension Methods

Constructors

ExceptionInfo()

Base-constructor for XML serialization. Do not call manually!

public ExceptionInfo()

ExceptionInfo(Exception)

Creates an exception information based on an exception.

public ExceptionInfo(Exception ex)

Parameters

ex Exception

The exception whose information to extract.

Properties

ExceptionType

The type of exception.

public string? ExceptionType { get; set; }

Property Value

string

InnerException

Information about the exception that originally caused the exception being described here.

public ExceptionInfo? InnerException { get; set; }

Property Value

ExceptionInfo

Message

The message describing the exception.

public string? Message { get; set; }

Property Value

string

Source

The name of the application or the object that causes the error.

public string? Source { get; set; }

Property Value

string

StackTrace

A string representation of the frames on the call stack at the time the exception was thrown.

public string? StackTrace { get; set; }

Property Value

string