Package net.jini.core.lease
Class LeaseMapException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.jini.core.lease.LeaseException
net.jini.core.lease.LeaseMapException
- All Implemented Interfaces:
Serializable
An exception generated when a LeaseMap renewAll or cancelAll call generates exceptions on one or
more leases in the map.
- Since:
- 1.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionA Map from Lease to Exception, containing each lease that failed to renew or cancel, and the exception that resulted from that lease's renewal or cancel attempt. -
Constructor Summary
ConstructorsConstructorDescriptionLeaseMapException(String s, Map exceptionMap) Constructs a LeaseMapException for the specified map with a detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
exceptionMap
A Map from Lease to Exception, containing each lease that failed to renew or cancel, and the exception that resulted from that lease's renewal or cancel attempt.
-
-
Constructor Details
-
LeaseMapException
Constructs a LeaseMapException for the specified map with a detail message.- Parameters:
s- the detail messageexceptionMap- the Map object on which the exception occurred- Throws:
NullPointerException- ifexceptionMapisnullor contains anullkey or anullvalueIllegalArgumentException- ifexceptionMapcontains any key which is not an instance ofLease, or any value which is not an instance ofThrowable
-