Subject Re: [IB-Architect] New API: Exceptions
Author Glebas Paulevicius
>I believe Glebas was correct with
>
>catch (SQLException &exception)
>{
>}

Yes, and this I learned from
"The annotated C++ Reference Manual" by Bjarne Stroustrup, 1990

>except I would add a const before SQLException. SQLException is an
>abstract base class.

'const' doesn't hurt.

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