Re: Question about the deleteObject call of DataContext

From: Mike Kienenberger (mkienen..laska.net)
Date: Thu Jan 13 2005 - 21:31:48 EST

  • Next message: JR Ruggentaler: "Cayenne newbe question"

    Cris Daniluk <cris.danilu..laraview.com> wrote:
    > Every application can't handle every possible failure with its own
    exception
    > :)
    >
    > The problem was that you passed a null pointer, and that's precisely what
    a
    > NPE is for. Even if Cayenne explicitly handled the condition, it would
    just
    > toss a NPE...

    I've opened an issue in Jira to update the javadocs for
    DataContext.deleteObject() to explicitly say that we'll throw a
    NullPointerException in this case.

    -Mike



    This archive was generated by hypermail 2.0.0 : Thu Jan 13 2005 - 21:31:46 EST