Show / Hide Table of Contents

    Class ExceptionDescriptor

    Provides information about an System.Exception, in a developer friendly way.

    Inheritance
    System.Object
    ExceptionDescriptor
    HttpExceptionDescriptor
    Namespace: Cuemon.Diagnostics
    Assembly: Cuemon.Core.dll
    Syntax
    public class ExceptionDescriptor

    Constructors

    | Improve this Doc

    ExceptionDescriptor()

    Initializes a new instance of the ExceptionDescriptor class.

    Declaration
    protected ExceptionDescriptor()
    | Improve this Doc

    ExceptionDescriptor(Exception, String, String, Uri)

    Initializes a new instance of the ExceptionDescriptor class.

    Declaration
    public ExceptionDescriptor(Exception failure, string code, string message, Uri helpLink = null)
    Parameters
    Type Name Description
    System.Exception failure

    The System.Exception that caused the current failure.

    System.String code

    The error code that uniquely identifies the type of failure.

    System.String message

    The message that explains the reason for the failure.

    System.Uri helpLink

    The optional link to a help page associated with this failure.

    Remarks

    code will remove any spaces that might be present.

    Properties

    | Improve this Doc

    Code

    Gets an error code that uniquely identifies the type of failure.

    Declaration
    public string Code { get; }
    Property Value
    Type Description
    System.String

    The number that identifies the type of failure.

    | Improve this Doc

    Evidence

    Gets a collection of key/value pairs that can provide additional information about the failure.

    Declaration
    public IReadOnlyDictionary<string, object> Evidence { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyDictionary<System.String, System.Object>

    An optional collection of key/value pairs that can provide additional information about the failure.

    | Improve this Doc

    Failure

    Gets the System.Exception that caused the current failure.

    Declaration
    public Exception Failure { get; }
    Property Value
    Type Description
    System.Exception

    The deeper cause of the failure.

    | Improve this Doc

    HelpLink

    Gets or sets a link to the help page associated with this failure.

    Declaration
    public Uri HelpLink { get; set; }
    Property Value
    Type Description
    System.Uri

    The location of an optional help page associated with this failure.

    | Improve this Doc

    Message

    Gets a message that describes the current failure.

    Declaration
    public string Message { get; }
    Property Value
    Type Description
    System.String

    The message that explains the reason for the failure.

    Methods

    | Improve this Doc

    AddEvidence<T>(String, T, Func<T, Object>)

    Adds an element of evidence to associate with the faulted operation.

    Declaration
    public void AddEvidence<T>(string context, T evidence, Func<T, object> evidenceProvider)
    Parameters
    Type Name Description
    System.String context

    The context of the evidence.

    T evidence

    The evidence itself.

    System.Func<T, System.Object> evidenceProvider

    The function delegate that provides the evidence.

    Type Parameters
    Name Description
    T

    The type of the evidence.

    | Improve this Doc

    PostInitializeWith(ExceptionDescriptorAttribute)

    Post initialize this instance with the specified attribute.

    Declaration
    public void PostInitializeWith(ExceptionDescriptorAttribute attribute)
    Parameters
    Type Name Description
    ExceptionDescriptorAttribute attribute
    | Improve this Doc

    PostInitializeWith(IEnumerable<ExceptionDescriptorAttribute>)

    Post initialize this instance with a matching ExceptionDescriptorAttribute from the specified attributes.

    Declaration
    public void PostInitializeWith(IEnumerable<ExceptionDescriptorAttribute> attributes)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ExceptionDescriptorAttribute> attributes

    The attributes to find a match within.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX