Show / Hide Table of Contents

Class ExceptionInsights

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

Inheritance
Object
ExceptionInsights
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class ExceptionInsights

Fields

| Improve this Doc View Source

Key

The Key used when applying insights to the Data dictionary.

Declaration
public const string Key = "$(___exceptionInsights___)"
Field Value
Type Description
String

Methods

| Improve this Doc View Source

Embed<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 exception.

SystemSnapshots snapshots

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

Returns
Type Description
T

The provided exception enriched with an embedded entry of insights.

Type Parameters
Name Description
T

The type of the exception.

| Improve this Doc View Source

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 exception.

Object[] runtimeParameters

The runtime parameters of the thrower.

SystemSnapshots snapshots

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

Returns
Type Description
T

The provided exception enriched with an embedded entry of insights.

Type Parameters
Name Description
T

The type of the exception.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX