Share via


TransportFailedException(String, String, Exception) Constructor

Definition

Constructs a TransportFailedException.

public TransportFailedException (string transportType, string message, Exception innerException = default);
public TransportFailedException (string transportType, string message, Exception? innerException = default);
new Microsoft.AspNetCore.Http.Connections.Client.TransportFailedException : string * string * Exception -> Microsoft.AspNetCore.Http.Connections.Client.TransportFailedException
Public Sub New (transportType As String, message As String, Optional innerException As Exception = Nothing)

Parameters

transportType
String

The name of the transport that failed to connect.

message
String

The reason the transport failed.

innerException
Exception

An optional extra exception if one was thrown while trying to connect.

Applies to