ElementNotFoundException.java 389 B

1234567891011121314
  1. /**
  2. * ElementNotFoundException represents the situation in which a target
  3. * element is not present in a collection
  4. *
  5. * @author Dr. Lewis
  6. * @author Dr. Chase
  7. * @version 1.0, 08/13/08
  8. */
  9. public class ElementNotFoundException extends RuntimeException {
  10. public ElementNotFoundException (String collection) {
  11. System.out.println ("The target element is not in this collection");
  12. }
  13. }