Show / Hide Table of Contents

Interface IExceptionLoggingContext

Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
public interface IExceptionLoggingContext

Methods

AddExceptionInfo(IDictionary<string, string>)

Add information to be logged if exception is thrown and logged

Declaration
void AddExceptionInfo(IDictionary<string, string> args)
Parameters
Type Name Description
IDictionary<string, string> args

AddExceptionInfo<TException>(IDictionary<string, string>)

Add information to be logged if the provided exception is thrown and logged

Declaration
void AddExceptionInfo<TException>(IDictionary<string, string> args) where TException : Exception
Parameters
Type Name Description
IDictionary<string, string> args
Type Parameters
Name Description
TException

Type of exception to log information for

AddExceptionInfo<TException>(string, string)

Add information to be logged if the provided exception is thrown and logged

Declaration
void AddExceptionInfo<TException>(string key, string value) where TException : Exception
Parameters
Type Name Description
string key
string value
Type Parameters
Name Description
TException

GetExceptionInfo(Type)

Get information that should be added to exceptions when logged.

Declaration
IDictionary<string, string> GetExceptionInfo(Type exceptionType)
Parameters
Type Name Description
Type exceptionType
Returns
Type Description
IDictionary<string, string>

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top