Thanx for the excellent example, finally got some sense in to me regarding
throwing/ catching.. 

Now I can play ball:> 

nyls




-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens
Ralf Bokelberg
Verzonden: Monday, August 28, 2006 10:54 PM
Aan: Open Source Flash Mailing List
Onderwerp: Re: [osflash] Exceptions in as2 : bad or good

I wrote a little exception handling example. You can download it from:
www.bokelberg.de/download/ExceptionHandlingExample.zip

While writing the example i found another interesting thing about
exceptions: If you read the code, they communicate very clearly, that
something exceptional is happening.

Cheers,
Ralf.


On 8/28/06, Johannes Nel <[EMAIL PROTECTED]> wrote:
> with ralf on this one, unit tests should be written around exceptions as
> well.
>
>
> On 8/28/06, Ralf Bokelberg < [EMAIL PROTECTED]> wrote:
> > By testing.
> > Cheers,
> > Ralf.
> >
> > On 8/28/06, erixtekila < [EMAIL PROTECTED]> wrote:
> > > > I always trace them. This way i can see them in the flashlog.txt
> > > > Also in an callback i always catch everything and pass the exception
> > > > back to the error handler.
> > > Yes, but how can you be sure not to forget one catch ?
> > > Just by commenting ?
> > >
> > > -----------
> > > erixtekila
> > > http://blog.v-i-a.net/
> > >
> > >
> > > _______________________________________________
> > > osflash mailing list
> > > [email protected]
> > > http://osflash.org/mailman/listinfo/osflash_osflash.org
> > >
> >
> >
> > --
> > Ralf Bokelberg <[EMAIL PROTECTED]>
> > Flex & Flash Consultant based in Cologne/Germany
> >
> > _______________________________________________
> > osflash mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
>
>
>
> --
> j:pn
> http://www.lennel.org
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
>


-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to