Share via


HttpOperationException Constructors

Definition

Overloads

HttpOperationException()

Initializes a new instance of the HttpOperationException class.

HttpOperationException(String)

Initializes a new instance of the HttpOperationException class with its message set to message.

HttpOperationException(String, Exception)

Initializes a new instance of the HttpOperationException class with its message set to message.

HttpOperationException(Nullable<HttpStatusCode>, String, String, Exception)

Initializes a new instance of the HttpOperationException class with its message and additional properties for the HTTP status code and response content.

HttpOperationException()

Initializes a new instance of the HttpOperationException class.

public HttpOperationException ();
Public Sub New ()

Applies to

HttpOperationException(String)

Initializes a new instance of the HttpOperationException class with its message set to message.

public HttpOperationException (string? message);
new Microsoft.SemanticKernel.HttpOperationException : string -> Microsoft.SemanticKernel.HttpOperationException
Public Sub New (message As String)

Parameters

message
String

A string that describes the error.

Applies to

HttpOperationException(String, Exception)

Initializes a new instance of the HttpOperationException class with its message set to message.

public HttpOperationException (string? message, Exception? innerException);
new Microsoft.SemanticKernel.HttpOperationException : string * Exception -> Microsoft.SemanticKernel.HttpOperationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A string that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

HttpOperationException(Nullable<HttpStatusCode>, String, String, Exception)

Initializes a new instance of the HttpOperationException class with its message and additional properties for the HTTP status code and response content.

public HttpOperationException (System.Net.HttpStatusCode? statusCode, string? responseContent, string? message, Exception? innerException);
new Microsoft.SemanticKernel.HttpOperationException : Nullable<System.Net.HttpStatusCode> * string * string * Exception -> Microsoft.SemanticKernel.HttpOperationException
Public Sub New (statusCode As Nullable(Of HttpStatusCode), responseContent As String, message As String, innerException As Exception)

Parameters

statusCode
Nullable<HttpStatusCode>

The HTTP status code.

responseContent
String

The content of the HTTP response.

message
String

A string that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to