NanoByte.Common  2.8.1
NanoByte.Common.Info.ExceptionInfo Class Reference

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

Public Member Functions

 ExceptionInfo ()
 Base-constructor for XML serialization. Do not call manually! More...
 
 ExceptionInfo (Exception ex)
 Creates an exception information based on an exception. More...
 

Properties

string? ExceptionType [get, set]
 The type of exception. More...
 
string? Message [get, set]
 The message describing the exception. More...
 
string? Source [get, set]
 The name of the application or the object that causes the error. More...
 
string? StackTrace [get, set]
 A string representation of the frames on the call stack at the time the exception was thrown. More...
 
ExceptionInfoInnerException [get, set]
 Information about the exception that originally caused the exception being described here. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ExceptionInfo() [1/2]

NanoByte.Common.Info.ExceptionInfo.ExceptionInfo ( )
inline

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

◆ ExceptionInfo() [2/2]

NanoByte.Common.Info.ExceptionInfo.ExceptionInfo ( Exception  ex)
inline

Creates an exception information based on an exception.

Parameters
exThe exception whose information to extract.

Property Documentation

◆ ExceptionType

string? NanoByte.Common.Info.ExceptionInfo.ExceptionType
getset

The type of exception.

◆ InnerException

ExceptionInfo? NanoByte.Common.Info.ExceptionInfo.InnerException
getset

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

◆ Message

string? NanoByte.Common.Info.ExceptionInfo.Message
getset

The message describing the exception.

◆ Source

string? NanoByte.Common.Info.ExceptionInfo.Source
getset

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

◆ StackTrace

string? NanoByte.Common.Info.ExceptionInfo.StackTrace
getset

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


The documentation for this class was generated from the following file: