home *** CD-ROM | disk | FTP | other *** search
/ Java Programmer's Toolkit / Java Programmer's Toolkit.iso / applets / collectn / illegale.jav < prev    next >
Encoding:
Text File  |  1995-10-14  |  1.1 KB  |  42 lines

  1. /*
  2.   File: IllegalElementException.java
  3.  
  4.   Originally written by Doug Lea and released into the public domain. 
  5.   Thanks for the assistance and support of Sun Microsystems Labs, Agorics 
  6.   Inc, Loral, and everyone contributing, testing, and using this code.
  7.  
  8.   History:
  9.   Date     Who                What
  10.   24Sep95  dl@cs.oswego.edu   Create from collections.java  working file
  11.   13Oct95  dl                 Changed protection statuses
  12. */
  13.   
  14. package collections;
  15.  
  16. import java.util.Enumeration;
  17. import java.util.NoSuchElementException;
  18.  
  19. /**
  20.  *
  21.  *
  22.  * IllegalElementException is thrown by Collection methods
  23.  * that add (or replace) elements (and/or keys) when their
  24.  * arguments are null or do not pass screeners.
  25.  * @author Doug Lea
  26.  * @version 0.93
  27.  *
  28.  * <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.
  29. **/
  30.  
  31. public class IllegalElementException extends IllegalArgumentException {
  32.  public Object argument;
  33.  public IllegalElementException() { super(); }
  34.  public IllegalElementException(Object v, String msg) { 
  35.    super(msg); 
  36.    argument = v;
  37.  }
  38.  
  39. }
  40.  
  41.  
  42.