Show / Hide Table of Contents

    Class HttpExceptionDescriptor

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

    Inheritance
    System.Object
    ExceptionDescriptor
    HttpExceptionDescriptor
    Inherited Members
    ExceptionDescriptor.Evidence
    Cuemon.Diagnostics.ExceptionDescriptor.AddEvidence<T>(System.String, T, Func<, >)
    ExceptionDescriptor.Code
    ExceptionDescriptor.Message
    ExceptionDescriptor.HelpLink
    ExceptionDescriptor.Failure
    ExceptionDescriptor.PostInitializeWith(ExceptionDescriptorAttribute)
    Cuemon.Diagnostics.ExceptionDescriptor.PostInitializeWith(IEnumerable<>)
    Namespace: Cuemon.AspNetCore.Http
    Assembly: Cuemon.AspNetCore.dll
    Syntax
    public class HttpExceptionDescriptor : ExceptionDescriptor

    Constructors

    | Improve this Doc

    HttpExceptionDescriptor(Exception, Int32, String, String, Uri)

    Initializes a new instance of the HttpExceptionDescriptor class.

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

    The System.Exception that caused the current failure.

    System.Int32 statusCode

    The status code of the HTTP request.

    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

    The following table shows the initial property values for an instance of HttpExceptionDescriptor.

    ParameterInitial Value
    statusCodeStatusCodes.Status500InternalServerError
    codecode ?? ReasonPhrases.GetReasonPhrase(statusCode)
    messagemessage ?? failure.Message

    Properties

    | Improve this Doc

    CorrelationId

    Gets or sets the correlation identifier that allows a reference to a particular transaction or event chain the caller made.

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

    An identifier that allows a reference to a particular transaction or event chain the caller made.

    | Improve this Doc

    RequestId

    Gets or sets the request identifier that uniquely identifies the service request the caller made.

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

    An identifier that uniquely identifies the service request the caller made.

    | Improve this Doc

    StatusCode

    Gets or sets the HTTP status code of the service request the caller made.

    Declaration
    public int StatusCode { get; set; }
    Property Value
    Type Description
    System.Int32

    The HTTP status code of the service request the caller made.

    Extension Methods

    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Byte[], Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, Byte[]>, Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Byte[], Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Byte[], Action<ContentTimeBasedOptions>)

    See Also

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