se.entitymanager.logic
Class EntityCopyCutFailedException

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

public class EntityCopyCutFailedException
extends java.lang.Exception

Exception which is thrown to indicate that cutting or copying of an entity failed.

See Also:
Serialized Form

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

See Also:
getEntity()

reason

private java.lang.String reason
The reason for why cutting or copying failed.

See Also:
getReason()
Constructor Detail

EntityCopyCutFailedException

public EntityCopyCutFailedException(EntityInterface entity,
                                    java.lang.String reason)
Constructs an exception to indicate , that cutting or copying of an entity failed.

Parameters:
entity - the entity
reason - the reason why cutting or copying failed
Method Detail

getEntity

public EntityInterface getEntity()
Returns the entity whose cutting or copying failed.

Returns:
the entity

getReason

public java.lang.String getReason()
Returns the reason why cutting or copying failed.

Returns:
the reason