Embed Method
Definition
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
exceptionTThe exception to enrich.
runtimeParametersobject[]The runtime parameters of the method that threw the
exception.snapshotsSystemSnapshotsA bitwise combination of the enumeration values that specify which areas of a system to capture.
Returns
- T
The provided
exceptionenriched with an embedded entry of insights.
Type Parameters
TThe 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
exceptionTThe exception to enrich.
throwerMethodBaseThe method that threw the
exception.runtimeParametersobject[]The optional runtime parameters of the
thrower.snapshotsSystemSnapshotsA bitwise combination of the enumeration values that specify which areas of a system to capture.
Returns
- T
The provided
exceptionenriched with an embedded entry of insights.
Type Parameters
TThe type of the
exception.