Share via


DeviceMessageLockLostException Class

Definition

The exception that is thrown when an attempt to communicate with a device fails because the lock token was lost (if the connection is lost and regained for example). This timeout has the same effect as if the message was abandonned.

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

Remarks

An abandoned message will be re-enqueued in the per-device queue, and the DeviceClient instance will receive it again. A rejected message will be deleted from the queue and not received again by the device.

Constructors

DeviceMessageLockLostException()

Initializes a new instance of the DeviceMessageLockLostException class.

DeviceMessageLockLostException(SerializationInfo, StreamingContext)

Initializes a new instance of the DeviceMessageLockLostException class with the specified serialization and context information.

DeviceMessageLockLostException(String, Exception)

Initializes a new instance of the DeviceMessageLockLostException class with the message string containing the device identifier that could not be found.

DeviceMessageLockLostException(String, Guid)

Initializes a new instance of the DeviceMessageLockLostException class with the message string containing the device identifier that could not be found.

DeviceMessageLockLostException(String)

Initializes a new instance of the DeviceMessageLockLostException class with the message string containing the device identifier that could not be found.

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