Delen via


DeviceMessageLockLostException Class

Definition

This exception is not directly returned by the service for ServiceClient operations. However, the status code HttpStatusCode.PreconditionFailed is converted to this exception.

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

Constructors

DeviceMessageLockLostException(ErrorCode, String)

Creates an instance of DeviceMessageLockLostException with a specified ErrorCode and error message, and marks it as non-transient.

DeviceMessageLockLostException(SerializationInfo, StreamingContext)

Creates an instance of DeviceMessageLockLostException with the SerializationInfo and StreamingContext associated with the exception.

DeviceMessageLockLostException(String, Guid, String)

Creates an instance of DeviceMessageLockLostException with the device Id, message Id and tracking Id, and marks it as non-transient.

DeviceMessageLockLostException(String, Guid)

Creates an instance of DeviceMessageLockLostException with the device Id and message Id, and marks it as non-transient.

DeviceMessageLockLostException(String)

Creates an instance of DeviceMessageLockLostException with a specified error message and marks it as non-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