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
-
ExceptionInsights
Fields
Key
public const string Key = "$(___exceptionInsights___)"
Field Value
Methods
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
TThe exception to enrich.
runtimeParameters
Object[]The runtime parameters of the method that threw the
exception
.snapshots
SystemSnapshotsA 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
TThe exception to enrich.
thrower
MethodBaseThe method that threw the
exception
.runtimeParameters
Object[]The optional runtime parameters of the
thrower
.snapshots
SystemSnapshotsA 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
.