[nem-en] Re: The ReportFatal problem
Vladimir Reshetnikov
V.Reshetnikov at gmail.com
Tue Feb 13 11:21:06 CET 2007
vc <vc <at> rsdn.ru> writes:
> > The other thing is that throwing exception allows us to catch it some
> > levels up, to skip presenting errors in the same line of code over and
> > over again.
>
> Application logic on exception? In my option it is bad practices.
>
If a situation prevents a normal algorithm flow from being continued, it is
quite reasonable to throw an exception and catch it somewhere at the top level.
It is much more clearly then raising a lot of flags.
More information about the devel-en
mailing list