Show / Hide Table of Contents

    Class HttpStatusCodeException

    Provides a base-class for exceptions based on an HTTP status code.

    Inheritance
    System.Object
    System.Exception
    HttpStatusCodeException
    UnauthorizedException
    UserAgentException
    ThrottlingException
    Implements
    System.Runtime.Serialization.ISerializable
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.ToString()
    System.Exception.Data
    System.Exception.HelpLink
    System.Exception.HResult
    System.Exception.InnerException
    System.Exception.Message
    System.Exception.Source
    System.Exception.StackTrace
    System.Exception.TargetSite
    System.Exception.SerializeObjectState
    Namespace: Cuemon.AspNetCore.Http
    Assembly: Cuemon.AspNetCore.dll
    Syntax
    public abstract class HttpStatusCodeException : Exception, ISerializable

    Constructors

    | Improve this Doc

    HttpStatusCodeException(Int32, String)

    Initializes a new instance of the HttpStatusCodeException class.

    Declaration
    protected HttpStatusCodeException(int statusCode, string message)
    Parameters
    Type Name Description
    System.Int32 statusCode

    The HTTP status code to associate with this exception.

    System.String message

    The message that describes the HTTP status code.

    Properties

    | Improve this Doc

    StatusCode

    Gets the HTTP status code associated with this exception.

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

    The HTTP status code associated with this exception.

    Implements

    System.Runtime.Serialization.ISerializable

    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

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