Table of Contents

HttpStatusCodeException Constructor

Definition

Namespace
Cuemon.AspNetCore.Http
Assemblies
Cuemon.AspNetCore.dll
Source
src/Cuemon.AspNetCore/Http/HttpStatusCodeException.cs

HttpStatusCodeException(int, string, Exception)

Initializes a new instance of the HttpStatusCodeException class.

protected HttpStatusCodeException(int statusCode, string message, Exception innerException = null)

Parameters

statusCode int

The HTTP status code to associate with this exception.

message string

The message that describes the HTTP status code.

innerException Exception

The exception that is the cause of the current exception.

HttpStatusCodeException(int, string, string, Exception)

Initializes a new instance of the HttpStatusCodeException class.

protected HttpStatusCodeException(int statusCode, string reasonPhrase, string message, Exception innerException = null)

Parameters

statusCode int

The HTTP status code to associate with this exception.

reasonPhrase string

The HTTP reason phrase to associate with statusCode and this exception.

message string

The message that describes the HTTP status code.

innerException Exception

The exception that is the cause of the current exception.