Table of Contents

Class ExceptionInsights

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Provides a set of static methods for embedding environment specific insights to an exception.

public static class ExceptionInsights
Inheritance
Object
ExceptionInsights

Fields

Key

The Key used when applying insights to the System.Exception.Data dictionary.

public const string Key = "$(___exceptionInsights___)"

Field Value

String

Methods

Embed<T>(T, Object[], SystemSnapshots)

Enriches and embed insights about an System.Exception.

public static T Embed<T>(T exception, object[] runtimeParameters = null, SystemSnapshots snapshots = SystemSnapshots.None)
    where T : Exception

Parameters

exception T

The exception to enrich.

runtimeParameters Object[]

The runtime parameters of the method that threw the exception.

snapshots SystemSnapshots

A bitwise combination of the enumeration values that specify which areas of a system to capture.

Returns

T

The provided exception enriched with an embedded entry of insights.

Type Parameters

T

The type of the exception.

Embed<T>(T, MethodBase, Object[], SystemSnapshots)

Enriches and embed insights about an System.Exception.

public static T Embed<T>(T exception, MethodBase thrower, object[] runtimeParameters = null, SystemSnapshots snapshots = SystemSnapshots.None)
    where T : Exception

Parameters

exception T

The exception to enrich.

thrower MethodBase

The method that threw the exception.

runtimeParameters Object[]

The optional runtime parameters of the thrower.

snapshots SystemSnapshots

A bitwise combination of the enumeration values that specify which areas of a system to capture.

Returns

T

The provided exception enriched with an embedded entry of insights.

Type Parameters

T

The type of the exception.