|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException i3.dragos.exception.StaleReferenceException
public class StaleReferenceException
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.
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 |
---|
public StaleReferenceException(GraphEntityClass staleReference)
staleReference
- The object on which the operation was attempted.public StaleReferenceException(GraphEntity staleReference)
staleReference
- The object on which the operation was attempted.public StaleReferenceException(Attribute staleReference)
staleReference
- The object on which the operation was attempted.Method Detail |
---|
public java.lang.Object getStaleReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |