de.cau.cs.kieler.sim.kiem.config.exception
Class AbstractKiemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.cau.cs.kieler.sim.kiem.config.exception.AbstractKiemException
Direct Known Subclasses:
KiemParserException, ScheduleFileMissingException

public abstract class AbstractKiemException
extends Exception

Super class for all Exceptions in the configuration part of KIEM.

Enables subclasses to supply an Object as information.

Rating proposed yellow
(2010-01-27)

Constructor Summary
AbstractKiemException(String message, Object infoParam)
          Creates a new AbstractKiemException.
AbstractKiemException(String message, Throwable cause, Object infoParam)
          Creates a new AbstractKiemException.
AbstractKiemException(Throwable cause, Object infoParam)
          Creates a new AbstractKiemException.
 
Method Summary
abstract  String getErrorMessage()
          Displays an error message based on the information.
 Object getInfo()
           
 
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

AbstractKiemException

public AbstractKiemException(String message,
                             Object infoParam)
Creates a new AbstractKiemException.

Parameters:
message - some message.
infoParam - the faulty object.

AbstractKiemException

public AbstractKiemException(Throwable cause,
                             Object infoParam)
Creates a new AbstractKiemException.

Parameters:
cause - the cause for this exception.
infoParam - the faulty object.

AbstractKiemException

public AbstractKiemException(String message,
                             Throwable cause,
                             Object infoParam)
Creates a new AbstractKiemException.

Parameters:
message - some message.
cause - the cause for this exception.
infoParam - the faulty object.
Method Detail

getInfo

public Object getInfo()
Returns:
the info

getErrorMessage

public abstract String getErrorMessage()
Displays an error message based on the information.

Returns:
the error message.