Share via


IotHubCommunicationException Class

Definition

The exception that is thrown when an attempt to communicate with the IoT Hub service fails.

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

Constructors

IotHubCommunicationException()

Initializes a new instance of the IotHubCommunicationException class.

IotHubCommunicationException(String, Exception)

Initializes a new instance of the IotHubCommunicationException class with the message string set to the message parameter and a reference to the inner exception that is the cause of this exception.

IotHubCommunicationException(String)

Initializes a new instance of the IotHubCommunicationException class with the message string set to the message parameter.

Properties

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 System.Runtime.Serialization.SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data.

(Inherited from IotHubException)

Applies to