Show / Hide Table of Contents

    Class HttpStatusException

    The exception that is thrown when service request fails and specific HTTP status must be returned.

    Inheritance
    Object
    Exception
    HttpStatusException
    Implements
    _Exception
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.ToString()
    Exception.GetType()
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.TargetSite
    Exception.StackTrace
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Services
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class HttpStatusException : Exception, _Exception, ISerializable

    Constructors

    HttpStatusException()

    Initializes new exception with default error message and HTTP 500 status code.

    Declaration
    public HttpStatusException()

    HttpStatusException(String)

    Initializes new exception with provided error message and HTTP 500 status code.

    Declaration
    public HttpStatusException(string message)
    Parameters
    Type Name Description
    String message

    Message that describes the error.

    HttpStatusException(String, Exception)

    Initializes new exception with provided error message, HTTP 500 status code, and inner exception.

    Declaration
    public HttpStatusException(string message, Exception innerException)
    Parameters
    Type Name Description
    String message

    Message that describes the error.

    Exception innerException

    Exception which is a cause of the current exception.

    HttpStatusException(String, HttpStatusCode)

    Initializes new exception with provided error message and status code.

    Declaration
    public HttpStatusException(string message, HttpStatusCode statusCode)
    Parameters
    Type Name Description
    String message

    Message that describes the error.

    HttpStatusCode statusCode

    HTTP status code associated with the exception.

    HttpStatusException(String, HttpStatusCode, Exception)

    Initializes new exception with provided error message, status code, and inner exception.

    Declaration
    public HttpStatusException(string message, HttpStatusCode statusCode, Exception innerException)
    Parameters
    Type Name Description
    String message

    Message that describes the error.

    HttpStatusCode statusCode

    HTTP status code associated with the exception.

    Exception innerException

    Exception which is a cause of the current exception.

    Properties

    StatusCode

    Gets the HTTP status code associated with the exception.

    Declaration
    public HttpStatusCode StatusCode { get; }
    Property Value
    Type Description
    HttpStatusCode

    Methods

    GetObjectData(SerializationInfo, StreamingContext)

    Sets the SerializationInfo with information about the exception.

    Declaration
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    See SerializationInfo.

    StreamingContext context

    See StreamingContext.

    Overrides
    Exception.GetObjectData(SerializationInfo, StreamingContext)

    Implements

    System.Runtime.InteropServices._Exception
    System.Runtime.Serialization.ISerializable
    Back to top Nevatech Sentinet 6.5 Online Documentation