net.sf.oness.common.model.exceptions
Class ExistingInstanceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.sf.oness.common.model.exceptions.ModelException
              extended bynet.sf.oness.common.model.exceptions.ExistingInstanceException
All Implemented Interfaces:
java.io.Serializable

public class ExistingInstanceException
extends ModelException

Exception thrown when trying to create an object similar to others that already exist

Version:
$Revision: 1.3 $
Author:
Carlos Sanchez
See Also:
Serialized Form

Constructor Summary
ExistingInstanceException(java.lang.Object object, java.lang.String className, java.util.Collection existingInstances)
           
 
Method Summary
 java.lang.String getClassName()
           
 java.util.Collection getExistingInstances()
           
 java.lang.Object getObject()
           
 
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

ExistingInstanceException

public ExistingInstanceException(java.lang.Object object,
                                 java.lang.String className,
                                 java.util.Collection existingInstances)
Parameters:
object -
className - name of the object class
existingInstances -
Method Detail

getObject

public java.lang.Object getObject()

getClassName

public java.lang.String getClassName()

getExistingInstances

public java.util.Collection getExistingInstances()


Copyright © 2003-2005 ONess Project. All Rights Reserved.