Delen via


IotHubCommunicationException Class

Definition

This exception is thrown when an attempt to communicate with the IoT hub service fails due to transient network issues or operation timeouts. Retrying failed operations could resolve the error.

[System.Serializable]
public sealed class IotHubCommunicationException : Microsoft.Azure.Devices.Common.Exceptions.IotHubException
[<System.Serializable>]
type IotHubCommunicationException = class
    inherit IotHubException
Public NotInheritable Class IotHubCommunicationException
Inherits IotHubException
Inheritance
IotHubCommunicationException
Attributes

Constructors

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.

Properties

Code

The error code associated with the exception.

(Inherited from IotHubException)
IsTransient

Indicates if the error is transient and should be retried.

(Inherited from IotHubException)
TrackingId

The service returned tracking Id associated with this particular error.

(Inherited from IotHubException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data.

(Inherited from IotHubException)

Applies to