ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: Review: Boost Test Library
by other posts by this author
Feb 13 2001 10:43PM messages near this date
Re: [boost] Re: Review: Boost Test Library | Re: [boost] Re: Review: Boost Test Library
--- In boost@[...].. , Jens Maurer <Jens.Maurer@[...]..>  wrote:
>  williamkempf@[...].. wrote:
>  > I've been thinking a bit about the desire for catch_exceptions()
to
>  > be able to handle registered exception types
> 
>  [ Lots of explanation removed. ]
> 
>  > Any thoughts or comments on the idea?
> 
>  This looks interesting. However, I believe we should consider
>  this only after having initially released the boost test library
>  and after someone actually writing tests comes up with a need for
>  it. Usually, I'd expect the ex.what() string to be sufficiently
>  descriptive. Except for some standard library implementations where
>  std::bad_alloc::what() is always the empty string. But we do handle
>  all standard exceptions explicitly already, so that point is moot.

I definately agree that this should not be considered for the initial
release of the Boost Test Library (at least not if it will slow or
hinder it's final inclusion). However, there are several reasons
that this idea might be considered beyond the obvious.

A) An exception type may not be derived from a std::exception type.
B) The user might want to register special error handling beyond
simple output of the cause for failure (execution_tools or even
catch_exceptions() may be used outside of test harnesses).
C) The user may want to override previously registered handlers to
do specific actions instead of or in addition to the previous
behavior.

Bill Kempf
Thread:
Jens Maurer
Ed Brey
Beman Dawes
Jens Maurer
Beman Dawes


Jens Maurer

Jens Maurer
David Abrahams
David Abrahams

Mark Rodgers

Kevlin Henney

Kevlin Henney

Ronald Garcia

Mark Rodgers
Ed Brey
David Abrahams

David Abrahams
David Abrahams
Beman Dawes
Ed Brey

Jens Maurer
Beman Dawes

Ed Brey

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved