Package org.apache.cayenne
Class DeleteDenyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cayenne.CayenneRuntimeException
org.apache.cayenne.DeleteDenyException
- All Implemented Interfaces:
- Serializable
An exception thrown during an attempt to delete an object that has a relationship to a
 non-null related object, that has a DENY delete rule.
- Since:
- 1.2
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDeleteDenyException(String message) DeleteDenyException(Persistent object, String relationship, String reason) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns message that includes Cayenne version label and the actual exception message.Methods inherited from class org.apache.cayenne.CayenneRuntimeExceptiongetExceptionLabel, getUnlabeledMessageMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
object
- 
relationship
 
- 
- 
Constructor Details- 
DeleteDenyExceptionpublic DeleteDenyException()
- 
DeleteDenyException
- 
DeleteDenyException- Since:
- 1.2
 
 
- 
- 
Method Details- 
getObject- Since:
- 1.2
 
- 
getRelationship- Since:
- 1.2
 
- 
getMessageDescription copied from class:CayenneRuntimeExceptionReturns message that includes Cayenne version label and the actual exception message.- Overrides:
- getMessagein class- CayenneRuntimeException
 
 
-