Class ExceptionDescriptorAttribute
- Namespace
- Cuemon.Diagnostics
- Assembly
- Cuemon.Core.dll
Provides information about an Exception, in a developer friendly way, optimized for open- and otherwise public application programming interfaces (API).
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class ExceptionDescriptorAttribute : ResourceAttribute
- Inheritance
-
ExceptionDescriptorAttribute
- Inherited Members
Constructors
ExceptionDescriptorAttribute(Type)
Initializes a new instance of the ExceptionDescriptorAttribute class.
public ExceptionDescriptorAttribute(Type failureType)
Parameters
Properties
Code
Gets or sets an error code that uniquely identifies the type of failure.
public string Code { get; set; }
Property Value
- String
The number that identifies the type of failure.
FailureType
public Type FailureType { get; }
Property Value
HelpLink
Gets or sets a link to the help page associated with this failure.
public string HelpLink { get; set; }
Property Value
- String
The location of an optional help page associated with this failure.
Message
Gets or sets a default message that describes the current failure.
public string Message { get; set; }
Property Value
- String
The default message that explains the reason for the failure.
MessageResourceName
Gets or sets the resource name (property name) to use as the key for looking up a localized message string.
public string MessageResourceName { get; set; }
Property Value
- String
The resource name (property name) to use as the key for looking up a localized message string that describes the current failure.