public LeaseMapException(String s,Map exceptionMap){
  super(s);
  final Set mapEntries=exceptionMap.entrySet();
  for (Iterator i=mapEntries.iterator(); i.hasNext(); ) {
    final Map.Entry entry=(Entry)i.next();
    final Object key=entry.getKey();
    final Object value=entry.getValue();
    if (key == null) {
      throw new NullPointerException("exceptionMap contains a null key");
    }
    if (!(key instanceof Lease)) {
      throw new IllegalArgumentException("exceptionMap contains an " + "a key which is not a Lease:" + key);
    }
    if (value == null) {
      throw new NullPointerException("exceptionMap contains a null value");
    }
    if (!(value instanceof Throwable)) {
      throw new IllegalArgumentException("exceptionMap contains an " + "a value which is not a Throwable:" + value);
    }
  }
  this.exceptionMap=exceptionMap;
}

public LeaseMapException ( String s , Map exceptionMap ) { super ( s ) ; final Set mapEntries = exceptionMap . entrySet ( ) ; for ( Iterator i = mapEntries . iterator ( ) ; i . hasNext ( ) ; ) { final Map . Entry entry = ( Entry ) i . next ( ) ; final Object key = entry . getKey ( ) ; final Object value = entry . getValue ( ) ; if ( key == null ) { throw new NullPointerException ( "exceptionMap contains a null key" ) ; } if ( ! ( key instanceof Lease ) ) { throw new IllegalArgumentException ( "exceptionMap contains an " + "a key which is not a Lease:" + key ) ; } if ( value == null ) { throw new NullPointerException ( "exceptionMap contains a null value" ) ; } if ( ! ( value instanceof Throwable ) ) { throw new IllegalArgumentException ( "exceptionMap contains an " + "a value which is not a Throwable:" + value ) ; } } this . exceptionMap = exceptionMap ; }
constructs a leasemapexception for the specified map with a detail message .
