[haXe] Why haxe do not support that?

Ralf Bokelberg ralf.bokelberg at gmail.com
Mon Sep 11 12:55:07 CEST 2006


Ah, i haven't thought of that, makes perfect sense Benjamin.

Cheers,
Ralf.

On 9/11/06, Benjamin Dasnois <benjamin.dasnois at gmail.com> wrote:
> Ralf? Do you mean that for example we could only throw class dervied
> from haxe.Error ? I've got to say that I can't agree with that... You
> never know what the runtime may throw as an Exception... for example,
> JS may throw a DOMException, Flash may throw something else...
>
> If I can only throw haxe.Error, then I'll expect that everything I
> catch is of type haxe.Error, but as I said above, it's not the case...
>
> On 9/11/06, Ralf Bokelberg <ralf.bokelberg at gmail.com> wrote:
> > Hi Nicolas
> >
> > A lot of things in haxe are best practices converted to compiler
> > checked constructs. I wonder, why you go the other way round with
> > exceptions/errors. Though we can create a common base class on our
> > own, i have the feeling, that a compiler forced base class fits better
> > with the general approach of haxe.
> >
> > Cheers,
> > Ralf.
> >
> > On 9/11/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
> > > > It is great. Thanks:)
> > > > But I want to know why haxe do not have some error hierarchy. I think
> > > > it is convenience to have some built-in error class. then user can
> > > > distinguish which error occured easily instead of just a string like
> > > > 'fatal error occured'
> > >
> > > This is not because there is no Error baseclass that you don't know what
> > > happenned. For example :
> > >
> > > throw "Not enough memory";
> > >
> > > Is pretty self-explaining.
> > >
> > > Nicolas
> > >
> > > --
> > > haXe - an open source web programming language
> > > http://haxe.org
> > >
> >
> >
> > --
> > Ralf Bokelberg <ralf.bokelberg at gmail.com>
> > Flex & Flash Consultant based in Cologne/Germany
> >
> > --
> > haXe - an open source web programming language
> > http://haxe.org
> >
>
>
> --
> DASNOIS Benjamin
> http://adevelopersblog.blogthing.com
>
> --
> haXe - an open source web programming language
> http://haxe.org
>


-- 
Ralf Bokelberg <ralf.bokelberg at gmail.com>
Flex & Flash Consultant based in Cologne/Germany



More information about the Haxe mailing list