net.jini.core.lease
Class LeaseMapException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.jini.core.lease.LeaseException
              extended by net.jini.core.lease.LeaseMapException
All Implemented Interfaces:
Serializable

public class LeaseMapException
extends LeaseException

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:
Serialized Form

Field Summary
 Map 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.
private static long serialVersionUID
           
 
Constructor Summary
LeaseMapException(String s, Map exceptionMap)
          Constructs a LeaseMapException for the specified map with a detail message.
 
Method Summary
private  void readObject(ObjectInputStream in)
           
private  void readObjectNoData()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

exceptionMap

public Map 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 Detail

LeaseMapException

public LeaseMapException(String s,
                         Map exceptionMap)
Constructs a LeaseMapException for the specified map with a detail message.

Parameters:
s - the detail message
exceptionMap - the Map object on which the exception occurred
Throws:
NullPointerException - if exceptionMap is null or contains a null key or a null value
IllegalArgumentException - if exceptionMap contains any key which is not an instance of Lease, or any value which is not an instance of Throwable
Method Detail

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Throws:
InvalidObjectException - if exceptionMap is null, contains any key which is not an instance of Lease, or contains any value which in not an instance of Throwable
IOException
ClassNotFoundException

readObjectNoData

private void readObjectNoData()
                       throws InvalidObjectException
Throws:
InvalidObjectException - if called


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.