Class ExceptionInsights
Provides a set of static methods for embedding environment specific insights to an exception.
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class ExceptionInsights
Fields
| Improve this Doc View SourceKey
Declaration
public const string Key = "$(___exceptionInsights___)"
Field Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceEmbed<T>(T, Object[], SystemSnapshots)
Enriches and embed insights about an Exception.
Declaration
public static T Embed<T>(T exception, object[] runtimeParameters = null, SystemSnapshots snapshots = SystemSnapshots.None)
where T : Exception
Parameters
Type | Name | Description |
---|---|---|
T | exception | The exception to enrich. |
Object[] | runtimeParameters | The runtime parameters of the method that threw the |
SystemSnapshots | snapshots | A bitwise combination of the enumeration values that specify which areas of a system to capture. |
Returns
Type | Description |
---|---|
T | The provided |
Type Parameters
Name | Description |
---|---|
T | The type of the |
Embed<T>(T, MethodBase, Object[], SystemSnapshots)
Enriches and embed insights about an Exception.
Declaration
public static T Embed<T>(T exception, MethodBase thrower, object[] runtimeParameters, SystemSnapshots snapshots = SystemSnapshots.None)
where T : Exception
Parameters
Type | Name | Description |
---|---|---|
T | exception | The exception to enrich. |
MethodBase | thrower | The method that threw the |
Object[] | runtimeParameters | The runtime parameters of the |
SystemSnapshots | snapshots | A bitwise combination of the enumeration values that specify which areas of a system to capture. |
Returns
Type | Description |
---|---|
T | The provided |
Type Parameters
Name | Description |
---|---|
T | The type of the |