edu.cs.ai.kreator.exceptions
Class FileNotSavedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.cs.ai.kreator.exceptions.KreatorException
              extended by edu.cs.ai.kreator.exceptions.FileException
                  extended by edu.cs.ai.kreator.exceptions.FileNotSavedException
All Implemented Interfaces:
java.io.Serializable

public class FileNotSavedException
extends FileException

Author:
Sebastian Loh This Exception is thrown if a file should be closed or reloaded but the views of the file are stained.
See Also:
Serialized Form

Constructor Summary
FileNotSavedException(DataFile datafile)
          Constructs a FileNotSavedException with the DataFile which views are stained This Exception is thrown if a file should be closed or reloaded but the views of the file are stained.
FileNotSavedException(java.lang.String message, DataFile datafile)
          Constructs a FileNotSavedException with a message and the DataFile which views are stained.
 
Method Summary
 DataFile getDataFile()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileNotSavedException

public FileNotSavedException(java.lang.String message,
                             DataFile datafile)
Constructs a FileNotSavedException with a message and the DataFile which views are stained. This Exception is thrown if a file should be closed or reloaded but the views of the file are stained.

Parameters:
message -
datafile -

FileNotSavedException

public FileNotSavedException(DataFile datafile)
Constructs a FileNotSavedException with the DataFile which views are stained This Exception is thrown if a file should be closed or reloaded but the views of the file are stained.

Parameters:
datafile -
Method Detail

getDataFile

public DataFile getDataFile()
Returns:
the DataFile which views are stained.