Show / Hide Table of Contents

Class ExceptionInfo

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

Inheritance
Object
ExceptionInfo
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

Extension Methods

UpdateUtils.To<TIn, TOut>(TIn, Func<TIn, TOut>)
JsonStorage.SaveJson<T>(T, Stream)
JsonStorage.SaveJson<T>(T, String)
JsonStorage.ToJsonString<T>(T)
JsonStorage.ReparseAsJson<T>(Object)
JsonStorage.ReparseAsJson<T>(Object, T)
XmlStorage.SaveXml(Object, Stream, String)
XmlStorage.SaveXml<T>(T, String, String)
XmlStorage.ToXmlString(Object, String)
ConversionUtils.ConvertToString<TType>(TType)
In This Article
Back to top Copyright Bastian Eicher