Hilbert II - Version 0.03.01

org.qedeq.kernel.xml.parser
Class ExceptionList

java.lang.Object
  extended byorg.qedeq.kernel.xml.parser.ExceptionList

public final class ExceptionList
extends Object

Type save Exception list.

Version:
$Revision: 1.8 $

Field Summary
static int MAXIMUM
          Maximum number of exceptions.
 
Constructor Summary
ExceptionList()
          Constructor.
 
Method Summary
 void add(Exception e)
          Add Exception.
 Exception get(int i)
          Get i-th exception.
 int size()
          Get number of collected exceptions.
 Exception[] toArray()
          Get all exceptions.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAXIMUM

public static final int MAXIMUM
Maximum number of exceptions.

See Also:
Constant Field Values
Constructor Detail

ExceptionList

public ExceptionList()
Constructor.

Method Detail

add

public final void add(Exception e)
               throws SAXException
Add Exception. This is only done if the number of already collected exceptions is below MAXIMUM.

Parameters:
e - Exception to add.
Throws:
SAXException - Maximum number of exception reached.

size

public final int size()
Get number of collected exceptions.

Returns:
Number of collected exceptions.

get

public final Exception get(int i)
Get i-th exception.

Parameters:
i - Starts with 0 and must be smaller than size().
Returns:
Wanted exception.

toArray

public final Exception[] toArray()
Get all exceptions.

Returns:
All exceptions.

toString

public String toString()

Hilbert II - Version 0.03.01

©left GNU General Public Licence
All Rights Reserved.