org.qedeq.kernel.se.common
Class SourceFileExceptionList

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.qedeq.kernel.se.common.SourceFileExceptionList
All Implemented Interfaces:
java.io.Serializable

public class SourceFileExceptionList
extends java.lang.Exception

Type save SourceFileException list.

Author:
Michael Meyling
See Also:
Serialized Form

Constructor Summary
SourceFileExceptionList()
          Constructor.
SourceFileExceptionList(SourceFileException e)
          Constructor.
SourceFileExceptionList(SourceFileExceptionList e)
          Constructor.
 
Method Summary
 void add(SourceFileException e)
          Add exception.
 void add(SourceFileExceptionList e)
          Add exceptions of given list if they are not already included.
 void clear()
          Clear list.
 boolean equals(java.lang.Object object)
           
 SourceFileException get(int i)
          Get i-th exception.
 java.lang.String getMessage()
           
 int hashCode()
           
 int size()
          Get number of collected exceptions.
 SourceFileException[] toArray()
          Get all exceptions.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceFileExceptionList

public SourceFileExceptionList()
Constructor.


SourceFileExceptionList

public SourceFileExceptionList(SourceFileException e)
Constructor.

Parameters:
e - Wrap me.

SourceFileExceptionList

public SourceFileExceptionList(SourceFileExceptionList e)
Constructor.

Parameters:
e - Wrap me.
Method Detail

clear

public void clear()
Clear list.


add

public void add(SourceFileException e)
Add exception. If we get null we do nothing.

Parameters:
e - Exception to add.

add

public void add(SourceFileExceptionList e)
Add exceptions of given list if they are not already included. If we get null we do nothing.

Parameters:
e - Add exceptions of this list.

size

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

Returns:
Number of collected exceptions.

get

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

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

toArray

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

Returns:
All exceptions.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2014. All Rights Reserved.