i3.dragos.exception
Class StaleReferenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by i3.dragos.exception.StaleReferenceException
All Implemented Interfaces:
java.io.Serializable

public class StaleReferenceException
extends java.lang.RuntimeException

A runtime exception thrown when the application attempts to perform operations on a stale reference (an object that has already been deleted in the database). It is recommended (but not required) to use this class instead of a general RuntimeException to allow automated handling through specialised catch clauses and also because of the detailed error messages this class auto-generates.

Author:
Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
See Also:
Serialized Form

Constructor Summary
StaleReferenceException(Attribute staleReference)
          Creates a new StaleReferenceException.
StaleReferenceException(GraphEntity staleReference)
          Creates a new StaleReferenceException.
StaleReferenceException(GraphEntityClass staleReference)
          Creates a new StaleReferenceException.
 
Method Summary
 java.lang.Object getStaleReference()
          Returns the object on which the operation was attempted.
 
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

StaleReferenceException

public StaleReferenceException(GraphEntityClass staleReference)
Creates a new StaleReferenceException.

Parameters:
staleReference - The object on which the operation was attempted.

StaleReferenceException

public StaleReferenceException(GraphEntity staleReference)
Creates a new StaleReferenceException.

Parameters:
staleReference - The object on which the operation was attempted.

StaleReferenceException

public StaleReferenceException(Attribute staleReference)
Creates a new StaleReferenceException.

Parameters:
staleReference - The object on which the operation was attempted.
Method Detail

getStaleReference

public java.lang.Object getStaleReference()
Returns the object on which the operation was attempted.

Returns:
the object on which the operation was attempted.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.