Class ExceptionInfo
Wraps information about an exception in a serializer-friendly format.
public class ExceptionInfo
- Inheritance
-
objectExceptionInfo
- 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
ExceptionThe 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
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