Share via


HttpOperationException Class

Definition

Represents an exception specific to HTTP operations.

public class HttpOperationException : Exception
type HttpOperationException = class
    inherit Exception
Public Class HttpOperationException
Inherits Exception
Inheritance
HttpOperationException

Constructors

HttpOperationException()

Initializes a new instance of the HttpOperationException class.

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(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.

Properties

ResponseContent

Gets or sets the content of the HTTP response.

StatusCode

Gets or sets the HTTP status code. If the property is null, it indicates that no response was received.

Applies to