org.apache.cayenne
Class DeleteDenyException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           java.lang.RuntimeException
java.lang.RuntimeException
               org.apache.cayenne.CayenneRuntimeException
org.apache.cayenne.CayenneRuntimeException
                   org.apache.cayenne.DeleteDenyException
org.apache.cayenne.DeleteDenyException
- All Implemented Interfaces: 
- Serializable
- public class DeleteDenyException 
- extends CayenneRuntimeException
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:
- Serialized Form
 
 
 
 
 
 
object
protected Persistent object
relationship
protected String relationship
DeleteDenyException
public DeleteDenyException()
DeleteDenyException
public DeleteDenyException(String message)
DeleteDenyException
public DeleteDenyException(Persistent object,
                           String relationship,
                           String reason)
- Since:
- 1.2
getObject
public Persistent getObject()
- 
- Since:
- 1.2
 
getRelationship
public String getRelationship()
- 
- Since:
- 1.2
 
getMessage
public String getMessage()
- Description copied from class: CayenneRuntimeException
- Returns message that includes Cayenne version label and the actual exception
 message.
 
- 
- Overrides:
- getMessagein class- CayenneRuntimeException
 
- 
 
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.