Table of Contents

Embed Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/ExceptionInsights.cs

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

Enriches and embed insights about an 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 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.