BadHttpRequestException Constructors

Definition

Overloads

BadHttpRequestException(String)

Initializes a new instance of the BadHttpRequestException class with the StatusCode set to 400 Bad Request.

BadHttpRequestException(String, Exception)

Initializes a new instance of the BadHttpRequestException class with the StatusCode set to 400 Bad Request.

BadHttpRequestException(String, Int32)

Initializes a new instance of the BadHttpRequestException class.

BadHttpRequestException(String, Int32, Exception)

Initializes a new instance of the BadHttpRequestException class.

BadHttpRequestException(String)

Initializes a new instance of the BadHttpRequestException class with the StatusCode set to 400 Bad Request.

public:
 BadHttpRequestException(System::String ^ message);
public BadHttpRequestException (string message);
new Microsoft.AspNetCore.Http.BadHttpRequestException : string -> Microsoft.AspNetCore.Http.BadHttpRequestException
Public Sub New (message As String)

Parameters

message
String

The message to associate with this exception

Applies to

BadHttpRequestException(String, Exception)

Initializes a new instance of the BadHttpRequestException class with the StatusCode set to 400 Bad Request.

public:
 BadHttpRequestException(System::String ^ message, Exception ^ innerException);
public BadHttpRequestException (string message, Exception innerException);
new Microsoft.AspNetCore.Http.BadHttpRequestException : string * Exception -> Microsoft.AspNetCore.Http.BadHttpRequestException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message to associate with this exception

innerException
Exception

The inner exception to associate with this exception

Applies to

BadHttpRequestException(String, Int32)

Initializes a new instance of the BadHttpRequestException class.

public:
 BadHttpRequestException(System::String ^ message, int statusCode);
public BadHttpRequestException (string message, int statusCode);
new Microsoft.AspNetCore.Http.BadHttpRequestException : string * int -> Microsoft.AspNetCore.Http.BadHttpRequestException
Public Sub New (message As String, statusCode As Integer)

Parameters

message
String

The message to associate with this exception.

statusCode
Int32

The HTTP status code to associate with this exception.

Applies to

BadHttpRequestException(String, Int32, Exception)

Initializes a new instance of the BadHttpRequestException class.

public:
 BadHttpRequestException(System::String ^ message, int statusCode, Exception ^ innerException);
public BadHttpRequestException (string message, int statusCode, Exception innerException);
new Microsoft.AspNetCore.Http.BadHttpRequestException : string * int * Exception -> Microsoft.AspNetCore.Http.BadHttpRequestException
Public Sub New (message As String, statusCode As Integer, innerException As Exception)

Parameters

message
String

The message to associate with this exception.

statusCode
Int32

The HTTP status code to associate with this exception.

innerException
Exception

The inner exception to associate with this exception

Applies to