org.apache.commons.collections
Class BufferUnderflowException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.util.NoSuchElementException
                  extended by org.apache.commons.collections.BufferUnderflowException
All Implemented Interfaces:
Serializable

public class BufferUnderflowException
extends NoSuchElementException

The BufferUnderflowException is used when the buffer is already empty.

NOTE: From version 3.0, this exception extends NoSuchElementException.

Since:
Commons Collections 2.1
Version:
$Revision: 555824 $ $Date: 2007-07-13 01:27:15 +0100 (Fri, 13 Jul 2007) $
Author:
Avalon, Berin Loritsch, Jeff Turner, Paul Jack, Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
BufferUnderflowException()
          Constructs a new BufferUnderflowException.
BufferUnderflowException(String message)
          Construct a new BufferUnderflowException.
BufferUnderflowException(String message, Throwable exception)
          Construct a new BufferUnderflowException.
 
Method Summary
 Throwable getCause()
          Gets the root cause of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
 

Constructor Detail

BufferUnderflowException

public BufferUnderflowException()
Constructs a new BufferUnderflowException.


BufferUnderflowException

public BufferUnderflowException(String message)
Construct a new BufferUnderflowException.

Parameters:
message - the detail message for this exception

BufferUnderflowException

public BufferUnderflowException(String message,
                                Throwable exception)
Construct a new BufferUnderflowException.

Parameters:
message - the detail message for this exception
exception - the root cause of the exception
Method Detail

getCause

public final Throwable getCause()
Gets the root cause of the exception.

Overrides:
getCause in class Throwable
Returns:
the root cause


Copyright © 2000-2009 The Apache Software Foundation. All Rights Reserved.