[Nitro] Architectural question
Judson Lester
nyarly at gmail.com
Tue Mar 13 17:28:19 EDT 2007
Sooner is probably better than later, since if it picks up momentum,
there'll be more and more "rescue Og::Exception => oge" sections in
client code.
For the time being, I'll create Og::Exception and Og::Deleted.
Judson
On 3/13/07, George Moschovitis <george.moschovitis at gmail.com> wrote:
> Ok, you can start the hierarchy, but I reserve the right to review
> this and probably tweak it some time later ;-)
>
> thanks,
> George.
>
> On 3/13/07, 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?
> >
> > --
> > Q: How does a hacker escape handcuffs?
> > A: Backslashes.
> > _______________________________________________
> > Nitro-general mailing list
> > Nitro-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/nitro-general
> >
>
>
> --
> http://blog.gmosx.com
> http://cull.gr
> http://www.joy.gr
> http://nitroproject.org
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
--
Q: How does a hacker escape handcuffs?
A: Backslashes.
More information about the Nitro-general
mailing list