Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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:
  java.io.Serializable

Direct Known Subclasses:
  DeleteDenyException

    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
Author:
  Andrus Adamchik
See Also:
  Serialized Form

Field Summary
`protected Persistent` | `object`
`protected java.lang.String` | `relationship`

Constructor Summary
`DeleteDenyException()`
`DeleteDenyException(Persistent object, java.lang.String relationship, java.lang.String reason)`
`DeleteDenyException(java.lang.String message)`

Method Summary
`java.lang.String` | `getMessage()` Returns message that includes Cayenne version label and the actual exception message.
`Persistent` | `getObject()`
`java.lang.String` | `getRelationship()`

Methods inherited from class org.apache.cayenne.CayenneRuntimeException
`getUnlabeledMessage`

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, 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

### object

    protected Persistent object

### relationship

    protected java.lang.String relationship

Constructor Detail

### DeleteDenyException

    public DeleteDenyException()

### DeleteDenyException

    public DeleteDenyException(java.lang.String message)

### DeleteDenyException

    public DeleteDenyException(Persistent object,
                               java.lang.String relationship,
                               java.lang.String reason)

Since:
  1.2

Method Detail

### getObject

    public Persistent getObject()

  Since:
    1.2

### getRelationship

    public java.lang.String getRelationship()

  Since:
    1.2

### getMessage

    public java.lang.String getMessage()

  Description copied from class: `CayenneRuntimeException`
  Returns message that includes Cayenne version label and the actual exception message.

  Overrides:
    `getMessage` in class `CayenneRuntimeException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.