TransportFailedException(String, String, Exception) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.