Delen via


IotHubCommunicationException Constructors

Definition

Overloads

IotHubCommunicationException(String)

Creates an instance of IotHubCommunicationException with a specified error message and marks it as transient.

IotHubCommunicationException(String, Exception)

Creates an instance of IotHubCommunicationException with a specified error message and a reference to the inner exception that caused this exception, and marks it as transient.

IotHubCommunicationException(String)

Creates an instance of IotHubCommunicationException with a specified error message and marks it as transient.

public IotHubCommunicationException (string message);
new Microsoft.Azure.Devices.Common.Exceptions.IotHubCommunicationException : string -> Microsoft.Azure.Devices.Common.Exceptions.IotHubCommunicationException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

IotHubCommunicationException(String, Exception)

Creates an instance of IotHubCommunicationException with a specified error message and a reference to the inner exception that caused this exception, and marks it as transient.

public IotHubCommunicationException (string message, Exception innerException);
new Microsoft.Azure.Devices.Common.Exceptions.IotHubCommunicationException : string * Exception -> Microsoft.Azure.Devices.Common.Exceptions.IotHubCommunicationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to