ides.api.core
Class IncompleteWorkspaceDescriptorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ides.api.core.IncompleteWorkspaceDescriptorException
All Implemented Interfaces:
java.io.Serializable

public class IncompleteWorkspaceDescriptorException
extends java.lang.Exception

The data needed to construct a WorkspaceDescriptor is incomplete.

Author:
Lenko Grigorov
See Also:
Serialized Form

Field Summary
protected  java.util.Collection<DESModel> neverSavedModels
          A list of the models which prevented the creation of the workspace descriptor (new models which have never been saved).
 
Constructor Summary
IncompleteWorkspaceDescriptorException()
          Creates an expection with an empty list of models.
IncompleteWorkspaceDescriptorException(java.util.Collection<DESModel> models)
          Creates an exception which contains a list of the models which prevented the creation of the workspace descriptor.
 
Method Summary
 java.util.Collection<DESModel> getNeverSavedModels()
          Returns a list of the models which prevented the creation of the workspace descriptor (e.g., new models in the workspace which have never been saved and their file location is unavailable).
 
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

neverSavedModels

protected java.util.Collection<DESModel> neverSavedModels
A list of the models which prevented the creation of the workspace descriptor (new models which have never been saved).

See Also:
WorkspaceBackend.getDescriptor()
Constructor Detail

IncompleteWorkspaceDescriptorException

public IncompleteWorkspaceDescriptorException()
Creates an expection with an empty list of models.


IncompleteWorkspaceDescriptorException

public IncompleteWorkspaceDescriptorException(java.util.Collection<DESModel> models)
Creates an exception which contains a list of the models which prevented the creation of the workspace descriptor.

Parameters:
models - the list of models which prevented the creation of the workspace descriptor
Method Detail

getNeverSavedModels

public java.util.Collection<DESModel> getNeverSavedModels()
Returns a list of the models which prevented the creation of the workspace descriptor (e.g., new models in the workspace which have never been saved and their file location is unavailable).

Returns:
a list of the models which prevented the creation of the workspace descriptor