de.cau.cs.kieler.kiml.grana
Class AnalysisFailed

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.AnalysisFailed

public class AnalysisFailed
extends Object

An analysis should return a subclass of this class if it failed to analyse the graph and provide meaningful information through the toString method.

Rating red

Nested Class Summary
static class AnalysisFailed.Type
          the analysis failed types.
 
Constructor Summary
AnalysisFailed(AnalysisFailed.Type theType)
          Constructs a new analysis failed object.
AnalysisFailed(AnalysisFailed.Type theType, Exception e)
          Constructs a new analysis failed object.
 
Method Summary
 Exception getException()
          Returns the associated exception.
 AnalysisFailed.Type getType()
          Returns the type.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnalysisFailed

public AnalysisFailed(AnalysisFailed.Type theType)
Constructs a new analysis failed object.

Parameters:
theType - the type

AnalysisFailed

public AnalysisFailed(AnalysisFailed.Type theType,
                      Exception e)
Constructs a new analysis failed object.

Parameters:
theType - the type
e - the exception
Method Detail

getType

public AnalysisFailed.Type getType()
Returns the type.

Returns:
the type

getException

public Exception getException()
Returns the associated exception.

Returns:
the exception or null if no exception is associated with this instance

toString

public String toString()

Overrides:
toString in class Object