This topic has not yet been rated - Rate this topic

MessageLockLostException Class

The exception that is thrown to signal message lock lost errors.

System.Object
  System.Exception
    Microsoft.ServiceBus.Messaging.MessagingException
      Microsoft.ServiceBus.Messaging.MessageLockLostException

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
[SerializableAttribute]
public sealed class MessageLockLostException : MessagingException

The MessageLockLostException type exposes the following members.

  Name Description
Public method MessageLockLostException(String) Initializes a new instance of the MessageLockLostException class with a specified error message.
Public method MessageLockLostException(String, Exception) Initializes a new instance of the MessageLockLostException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Top
  Name Description
Public property Data (Inherited from Exception.)
Public property Detail Gets the detail information of the messaging exception. (Inherited from MessagingException.)
Public property HelpLink (Inherited from Exception.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)
Public property Timestamp Gets or sets the time at which the messaging exception occurred. (Inherited from MessagingException.)
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Populates the serialization information with data about the exception. (Inherited from MessagingException.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)
Top
  Name Description
Protected event SerializeObjectState (Inherited from Exception.)
Top

If a message takes longer to process than the lock duration set on a queue or subscription, its visibility lock will time out and the message will again become available to the consumers of the queue or subscription. If you attempt to complete or abandon such a message, you may receive this exception, indicating that there is no valid lock found for the given message.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)