org.apache.commons.collections

Class BufferUnderflowException


public class BufferUnderflowException
extends NoSuchElementException

The BufferUnderflowException is used when the buffer is already empty.

NOTE: From version 3.0, this exception extends NoSuchElementException.

Version:
$Revision: 1.1 $ $Date: 2004/05/10 19:50:52 $
Authors:
Avalon
Berin Loritsch
Jeff Turner
Paul Jack
Stephen Colebourne
Since:
Commons Collections 2.1

Field Summary

private Throwable
throwable
The root cause throwable

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.

Field Details

throwable

private final Throwable throwable
The root cause throwable

Constructor Details

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 Details

getCause

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

Copyright (c) 2001-2004 - Apache Software Foundation