Class ExceptionInfo
Wraps information about an exception in a serializer-friendly format.
Namespace: NanoByte.Common.Info
Assembly: NanoByte.Common.dll
Syntax
public class ExceptionInfo : Object
Constructors
ExceptionInfo()
Base-constructor for XML serialization. Do not call manually!
Declaration
public ExceptionInfo()
ExceptionInfo(Exception)
Creates an exception information based on an exception.
Declaration
public ExceptionInfo(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Exception | ex | The exception whose information to extract. |
Properties
ExceptionType
The type of exception.
Declaration
public string ExceptionType { get; set; }
Property Value
Type | Description |
---|---|
String |
InnerException
Information about the exception that originally caused the exception being described here.
Declaration
public ExceptionInfo InnerException { get; set; }
Property Value
Type | Description |
---|---|
ExceptionInfo |
Message
The message describing the exception.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
String |
Source
The name of the application or the object that causes the error.
Declaration
public string Source { get; set; }
Property Value
Type | Description |
---|---|
String |
StackTrace
A string representation of the frames on the call stack at the time the exception was thrown.
Declaration
public string StackTrace { get; set; }
Property Value
Type | Description |
---|---|
String |