se.entitymanager.logic
Class EntityRenameFailedException

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

public class EntityRenameFailedException
extends java.lang.Exception

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

See Also:
Serialized Form

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

See Also:
getEntity()

reason

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

See Also:
getReason()
Constructor Detail

EntityRenameFailedException

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

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

getEntity

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

Returns:
the entity

getReason

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

Returns:
the reason