[Nitro] Architectural question
Brian Davis
brian.william.davis at gmail.com
Tue Mar 13 15:58:08 EDT 2007
On Tue, 13 Mar 2007 12:36:09 -0700
"Judson Lester" <nyarly at gmail.com> wrote:
> So here's an upsetting little bug I stumbled across recently:
>
> I've got model_object = ModelClass[1], right?
> And elsewhere (different thread, process, different menthod, even),
> someone deletes ModelClass[1].
>
> If I model_object.reload I get a NoMethodError about nil, which is
> less than informative.
>
> I'd like for reloading a missing object to raise a useful exception,
> but AFAICT, Og doesn't define an exception class. Any problems with
> me starting the Og::Exception heirarchy?
>
I would say go for it. It seems to me that something like Og::Exception
would be a necessary part of an ORM.
--
Brian Davis
Project Manager
FreezeCrowd, Inc.
More information about the Nitro-general
mailing list