Subject | Re: [IB-Architect] New API: Exceptions |
---|---|
Author | Glebas Paulevicius |
Post date | 2000-06-02T07:41:11Z |
>I believe Glebas was correct withYes, and this I learned from
>
>catch (SQLException &exception)
>{
>}
"The annotated C++ Reference Manual" by Bjarne Stroustrup, 1990
>except I would add a const before SQLException. SQLException is an'const' doesn't hurt.
>abstract base class.
Bjarne only uses pointers to catch C strings (still - no need to delete them):
try
{
throw "Help!";
}
catch( const char *str )
{
printf( str );
// DON'T delete str;
}
Otherwise - it is always reference.
Glebas