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

Remarks

Instances of this class optionally contain telemetry information in the Exception.Data property using keys that are consistent with the OpenTelemetry standard. See https://opentelemetry.io/ for more information.

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, Exception)

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

HttpOperationException(String)

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

Properties

RequestMethod
Obsolete.

Gets the method used for the HTTP request.

RequestPayload
Obsolete.

Gets the payload sent in the request.

RequestUri
Obsolete.

Gets the System.Uri used for the HTTP request.

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