com.microsoft.azure.eventprocessorhost.LeaseLostException Maven / Gradle / Ivy
/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.eventprocessorhost;
public class LeaseLostException extends Exception
{
private static final long serialVersionUID = -4625001822439809869L;
private final Lease lease;
LeaseLostException(Lease lease, Throwable cause)
{
super(null, cause);
this.lease = lease;
}
// We don't want to expose Lease to the public.
public String getPartitionId()
{
return this.lease.getPartitionId();
}
}