KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.service.lease;
2
3 public class LeaseDeniedException extends LeaseException {
4     public static final
5     String JavaDoc DEFAULT_MESSAGE = "Lease cannot be granted.";
6
7     protected final
8     Object JavaDoc leaseTarget;
9
10     public LeaseDeniedException(Object JavaDoc leaseTarget) {
11     this(DEFAULT_MESSAGE, leaseTarget);
12     }
13
14     public LeaseDeniedException(String JavaDoc msg, Object JavaDoc leaseTarget) {
15     super(msg);
16
17     this.leaseTarget = leaseTarget;
18     }
19
20     public Object JavaDoc getLeaseTarget() {
21     return leaseTarget;
22     }
23 }
Popular Tags