org.graffiti.plugin.algorithm
Class PreconditionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.graffiti.plugin.algorithm.PreconditionException
All Implemented Interfaces:
Serializable

public class PreconditionException
extends Exception

Throws in the context of precondition failures.

See Also:
Serialized Form

Nested Class Summary
 class PreconditionException.Entry
          Contains a cause and the source object (ie.: a Graph, Node or Edge).
 
Constructor Summary
PreconditionException()
          Creates a new PreconditionException object.
PreconditionException(String msg)
          Creates a new PreconditionException object.
 
Method Summary
 void add(String cause)
          DOCUMENT ME!
 void add(String cause, Object source)
          DOCUMENT ME!
 String getMessage()
           
 boolean isEmpty()
          DOCUMENT ME!
 Iterator<PreconditionException.Entry> iterator()
          Returns an iterator over all Errors.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreconditionException

public PreconditionException(String msg)
Creates a new PreconditionException object.

Parameters:
msg - DOCUMENT ME!

PreconditionException

public PreconditionException()
Creates a new PreconditionException object.

Method Detail

isEmpty

public boolean isEmpty()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()

add

public void add(String cause,
                Object source)
DOCUMENT ME!

Parameters:
cause - DOCUMENT ME!
source - DOCUMENT ME!

add

public void add(String cause)
DOCUMENT ME!

Parameters:
cause - DOCUMENT ME!

iterator

public Iterator<PreconditionException.Entry> iterator()
Returns an iterator over all Errors.

Returns:
an iterator.


Generated at 2012-05-30 11:00:14 PM CEST