com.ibm.di.exceptions
Class IgnorableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.di.exceptions.IgnorableException
All Implemented Interfaces:
Serializable

public class IgnorableException
extends Exception

This Exception class can be used when a minor Exception has occured. In most cases it would be ignored. It accepts a list of Exceptions as sources, and will display them all when printed.

See Also:
Serialized Form

Constructor Summary
IgnorableException()
          Constructor.
IgnorableException(List<Throwable> exs)
          Constructor.
IgnorableException(Throwable ex)
          Constructor.
 
Method Summary
 void addThrowable(Throwable t)
          Adds a Throwable to the list of contained ones.
 String getMessage()
          Answers the extra information message which was provided when the throwable was created.
 List<Throwable> getThrowables()
          Returns the list of managed Exceptions.
 boolean isEmpty()
          Determines if this exception contains any Throwables.
 void printStackTrace()
          Outputs a printable representation of the all causes stored in this Exception.
 void printStackTrace(PrintStream err)
          Outputs a printable representation of the all causes stored in this Exception.
 void printStackTrace(PrintWriter err)
          Outputs a printable representation of the all causes stored in this Exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IgnorableException

public IgnorableException()
Constructor.


IgnorableException

public IgnorableException(Throwable ex)
Constructor.

Parameters:
ex - exception's cause.

IgnorableException

public IgnorableException(List<Throwable> exs)
Constructor.

Parameters:
exs - list of occurred exceptions.
Method Detail

printStackTrace

public void printStackTrace()
Outputs a printable representation of the all causes stored in this Exception.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream err)
Outputs a printable representation of the all causes stored in this Exception.

Overrides:
printStackTrace in class Throwable
Parameters:
err - The stream to write the walkback on.

printStackTrace

public void printStackTrace(PrintWriter err)
Outputs a printable representation of the all causes stored in this Exception.

Overrides:
printStackTrace in class Throwable
Parameters:
err - The writer to write the walkback on.

addThrowable

public void addThrowable(Throwable t)
Adds a Throwable to the list of contained ones.

Parameters:
t - a Throwable to add to the managed list.

getThrowables

public List<Throwable> getThrowables()
Returns the list of managed Exceptions.

Returns:
the list of managed Exceptions.

isEmpty

public boolean isEmpty()
Determines if this exception contains any Throwables.

Returns:
wheter the list of managed Throwables is Empty or not.

getMessage

public String getMessage()
Answers the extra information message which was provided when the throwable was created. The messages of the contained Throwables will also be listed. If no message was provided for any of the Throwables, null will be logged for it.

Overrides:
getMessage in class Throwable
Returns:
String The receiver's message.