RE: Question about the deleteObject call of DataContext

From: Cris Daniluk (cris.danilu..laraview.com)
Date: Thu Jan 13 2005 - 20:57:40 EST

  • Next message: Mike Kienenberger: "Re: Question about the deleteObject call of DataContext"

    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...

    > -----Original Message-----
    > From: Joshua Pyle [mailto:joshua.t.pyl..mail.com]
    > Sent: Thursday, January 13, 2005 1:18 PM
    > To: Mike Kienenberger
    > Cc: cayenne-use..bjectstyle.org
    > Subject: Re: Question about the deleteObject call of DataContext
    >
    > My point is that a NullPointer Exception should not be thrown
    > some other cayenne exception should be thrown. A null
    > pointer exception implies that the deleteObject call is not
    > handling a null value, and is instead strying to use the
    > object witout checking or trapping.
    >



    This archive was generated by hypermail 2.0.0 : Thu Jan 13 2005 - 20:57:41 EST