Change superclass to NoSuchElementException for better collections integration

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2004-01-06 21:43:08 +00:00
parent a0182a05b5
commit 1672bb3ee0
1 changed files with 10 additions and 6 deletions

View File

@ -1,10 +1,10 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BufferUnderflowException.java,v 1.8 2003/10/09 20:58:52 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/BufferUnderflowException.java,v 1.9 2004/01/06 21:43:08 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2002-2003 The Apache Software Foundation. All rights * Copyright (c) 2002-2004 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -57,19 +57,23 @@
*/ */
package org.apache.commons.collections; package org.apache.commons.collections;
import java.util.NoSuchElementException;
/** /**
* The BufferUnderflowException is used when the buffer is already empty. * The BufferUnderflowException is used when the buffer is already empty.
* <p>
* NOTE: From version 3.0, this exception extends NoSuchElementException.
* *
* @since Commons Collections 2.1 * @since Commons Collections 2.1
* @version $Revision: 1.8 $ $Date: 2003/10/09 20:58:52 $ * @version $Revision: 1.9 $ $Date: 2004/01/06 21:43:08 $
* *
* @author Avalon * @author Avalon
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a> * @author Berin Loritsch
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a> * @author Jeff Turner
* @author Paul Jack * @author Paul Jack
* @author Stephen Colebourne * @author Stephen Colebourne
*/ */
public class BufferUnderflowException extends RuntimeException { public class BufferUnderflowException extends NoSuchElementException {
/** The root cause throwable */ /** The root cause throwable */
private final Throwable throwable; private final Throwable throwable;