[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exceptions are not cought

From: Stefan Kristensen
Subject: Re: Exceptions are not cought
Date: Sun, 18 Nov 2007 10:11:48 +0100
User-agent: Thunderbird (Windows/20071031)

<snip try / catch example that doesn't work>

What am I doing wrong?

try/catch blocks catch C++ objects (exceptions, strings
int's, etc) thrown within the 'try' clause.
I imagine that mysql_real_connect() is either a C function
or is a C++ function that does NOT throw anything - hence
there is nothing to 'catch' and your code continues
at the line FOLLOWING the 'catch' block.

Oh yes - Thats propably it.

Thank you very much.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]