se.entitymanager.logic
Class EntityDeletionFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by se.entitymanager.logic.EntityDeletionFailedException
All Implemented Interfaces:
java.io.Serializable

public class EntityDeletionFailedException
extends java.lang.Exception

Exception which is thrown to indicate, that a deletion of an entity failed.

See Also:
Serialized Form

Field Summary
private  EntityInterface entity
          The entity whose deletion failed.
private  java.lang.String reason
          The reason for why deletion failed.
 
Constructor Summary
EntityDeletionFailedException(EntityInterface entity, java.lang.String reason)
          Constructs an exception to indicate , that deletion of an entity failed.
 
Method Summary
 EntityInterface getEntity()
          Returns the entity whose deletion failed.
 java.lang.String getReason()
          Returns the reason why deletion failed.
 
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

entity

private EntityInterface entity
The entity whose deletion failed.

See Also:
getEntity()

reason

private java.lang.String reason
The reason for why deletion failed.

See Also:
getReason()
Constructor Detail

EntityDeletionFailedException

public EntityDeletionFailedException(EntityInterface entity,
                                     java.lang.String reason)
Constructs an exception to indicate , that deletion of an entity failed.

Parameters:
entity - the entity
reason - the reason why deletion failed
Method Detail

getEntity

public EntityInterface getEntity()
Returns the entity whose deletion failed.

Returns:
the entity

getReason

public java.lang.String getReason()
Returns the reason why deletion failed.

Returns:
the reason