org.figure8.join.core
Class DuplicateEntityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.figure8.join.core.DuplicateEntityException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateEntityException
extends java.lang.Exception

Extension of Exception thrown during a save or update operation on an EntityObject when a same or analogous entity already exists.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
DuplicateEntityException(java.lang.String msg, EntityObject original)
          Creates a new instance of DuplicateEntityException.
DuplicateEntityException(java.lang.String msg, java.lang.Throwable cause, EntityObject original)
          Creates a new instance of DuplicateEntityException.
DuplicateEntityException(java.lang.Throwable cause, EntityObject original)
          Creates a new instance of DuplicateEntityException.
 
Method Summary
 EntityObject getOriginalEntity()
           
 
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

DuplicateEntityException

public DuplicateEntityException(java.lang.String msg,
                                EntityObject original)
Creates a new instance of DuplicateEntityException.

Parameters:
msg - Message for this exception
original - Orignal entity that has cause duplication to occur

DuplicateEntityException

public DuplicateEntityException(java.lang.Throwable cause,
                                EntityObject original)
Creates a new instance of DuplicateEntityException.

Parameters:
cause - Root throwable for this exception
original - Orignal entity that has cause duplication to occur

DuplicateEntityException

public DuplicateEntityException(java.lang.String msg,
                                java.lang.Throwable cause,
                                EntityObject original)
Creates a new instance of DuplicateEntityException.

Parameters:
msg - Message for this exception
cause - Root throwable for this exception
original - Orignal entity that has cause duplication to occur
Method Detail

getOriginalEntity

public EntityObject getOriginalEntity()
Returns:
The original EntityObject that has cause this exception to occur


Copyright © 2005-2008 Join. All Rights Reserved.