KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > service > lease > UnknownLeaseException


1 package org.jgroups.service.lease;
2
3 public class UnknownLeaseException extends LeaseException {
4     public static final
5     String JavaDoc DEFAULT_MESSAGE = "Specified lease is unknown.";
6
7     protected final
8     Lease unknownLease;
9
10     public UnknownLeaseException(Lease unknownLease) {
11     this(DEFAULT_MESSAGE, unknownLease);
12     }
13
14     public UnknownLeaseException(String JavaDoc msg, Lease unknownLease) {
15     super(msg);
16     this.unknownLease = unknownLease;
17     }
18
19     public Lease getUnknownLease() {
20     return unknownLease;
21     }
22 }
Popular Tags