de.cau.cs.kieler.sim.kiem
Class KiemInitializationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.cau.cs.kieler.sim.kiem.KiemInitializationException

public class KiemInitializationException
extends Exception

The Class KiemInitializationException. This exception is used by DataComponents to flag errors within their initialization() and their wrapup() method during the initialization and wrap-up phase. If the mustStop flag is set to true, then this means the execution CANNOT been started and the execution manager will not do so if any DataComponent throws an error with this flag.

Rating yellow
(2009-01-15)

Constructor Summary
KiemInitializationException(String message, boolean mustStopParam, Exception causeParam)
          Instantiates a new KiemInitializationException.
KiemInitializationException(String message, boolean mustStopParam, Exception causeParam, boolean isSilent)
          Instantiates a new KiemInitializationException.
 
Method Summary
 Exception getCause()
          Gets the cause of this Exception.
 boolean isMustStop()
          Checks if the execution must stop when this Exception occurs.
 boolean isSilent()
          Returns the value of the silent flag.
 
Methods inherited from class java.lang.Throwable
getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KiemInitializationException

public KiemInitializationException(String message,
                                   boolean mustStopParam,
                                   Exception causeParam,
                                   boolean isSilent)
Instantiates a new KiemInitializationException.

Parameters:
message - the message of this Exception to display to the user
mustStopParam - the must stop flag indicating if the execution must stop
causeParam - the cause of this Exception if any, or null otherwise
isSilent - sets the silent flag of this Exception to true/false

KiemInitializationException

public KiemInitializationException(String message,
                                   boolean mustStopParam,
                                   Exception causeParam)
Instantiates a new KiemInitializationException.

Parameters:
message - the message of this Exception to display to the user
mustStopParam - the must stop flag indicating if the execution must stop
causeParam - the cause of this Exception if any, or null otherwise
Method Detail

isSilent

public boolean isSilent()
Returns the value of the silent flag.

Returns:
the silent flag

isMustStop

public boolean isMustStop()
Checks if the execution must stop when this Exception occurs.

Returns:
true, if execution must stop

getCause

public Exception getCause()
Gets the cause of this Exception.

Returns:
the cause of this Exception, if any