|Subject||Re: [IB-Architect] New API: Exceptions|
>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):
catch( const char *str )
printf( str );
// DON'T delete str;
Otherwise - it is always reference.