Show / Hide Table of Contents

    Class ExceptionDescriptorAttribute

    Provides information about an System.Exception, in a developer friendly way, optimized for open- and otherwise public application programming interfaces (API).

    Inheritance
    System.Object
    System.Attribute
    ExceptionDescriptorAttribute
    Implements
    IMessageLocalizer
    Inherited Members
    System.Attribute.Equals(System.Object)
    System.Attribute.GetHashCode()
    Namespace: Cuemon.Diagnostics
    Assembly: Cuemon.Core.dll
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public class ExceptionDescriptorAttribute : Attribute, IMessageLocalizer

    Constructors

    | Improve this Doc

    ExceptionDescriptorAttribute(Type)

    Initializes a new instance of the ExceptionDescriptorAttribute class.

    Declaration
    public ExceptionDescriptorAttribute(Type failureType)
    Parameters
    Type Name Description
    System.Type failureType

    The System.Type of the failure to match and describe.

    Properties

    | Improve this Doc

    Code

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

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

    The number that identifies the type of failure.

    | Improve this Doc

    FailureType

    Gets the System.Type of System.Exception to match and describe.

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

    The System.Type of System.Exception to match.

    | Improve this Doc

    HelpLink

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

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

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

    | Improve this Doc

    Message

    Gets or sets a default message that describes the current failure.

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

    The default message that explains the reason for the failure.

    | Improve this Doc

    MessageResourceName

    Gets or sets the resource name (property name) to use as the key for lookups on the resource type.

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

    Use this property to set the name of the property within MessageResourceType that will provide a localized message that describes the current failure.

    | Improve this Doc

    MessageResourceType

    Gets or sets the resource type to use for message lookups.

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

    Use this property only in conjunction with MessageResourceName. They are used together to retrieve localized messages at runtime.

    Implements

    IMessageLocalizer

    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>)

    See Also

    System.Attribute
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX