ides.api.plugin.io
Class FileLoadException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by ides.api.plugin.io.FileLoadException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnsupportedVersionException

public class FileLoadException
extends java.io.IOException

Used when there is a problem loading a file. Additionally, can store and later provide access to the partially-loaded DESModel at the time of the exception.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  DESModel partialModel
          The partially-loaded model at the time of the exception.
 
Constructor Summary
FileLoadException()
          Creates an exception without specifying a partially-loaded model.
FileLoadException(java.lang.String msg)
          Creates an exception without specifying a partially-loaded model.
FileLoadException(java.lang.String msg, DESModel partialModel)
          Creates an exception which will give access to the partially-loaded model at the time of the exception.
 
Method Summary
 DESModel getPartialModel()
          Provides access to the partially-loaded model at the time of the exception.
 
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
 

Field Detail

partialModel

protected DESModel partialModel
The partially-loaded model at the time of the exception.

Constructor Detail

FileLoadException

public FileLoadException()
Creates an exception without specifying a partially-loaded model.


FileLoadException

public FileLoadException(java.lang.String msg)
Creates an exception without specifying a partially-loaded model.

Parameters:
msg - message

FileLoadException

public FileLoadException(java.lang.String msg,
                         DESModel partialModel)
Creates an exception which will give access to the partially-loaded model at the time of the exception.

Parameters:
msg - message
partialModel - the partially-loaded model at the time of the exception
Method Detail

getPartialModel

public DESModel getPartialModel()
Provides access to the partially-loaded model at the time of the exception.

Returns:
the partially-loaded model at the time of the exception