Does TSQLServer::Connect throw an Exception?

Hi,
I would like to manage a failure of connection with a TSQLServer,
I didn’t find any information concerning an Exception with the TSQLServer,
Does TSQLServer::Connect throw an exception if the connection fails ?

If yes where can I find information on the Exception type ?

If not, how can I get information on the reason why the connection failled ? ( i.e If I use a wrong password or if the server is not running for example)

P.S.
Yes I recently used a lot java and take the bad habit of try/catch :smiling_imp:

Hi

You did not specify ROOT version and kind of SQL server.
I cannot help you if I cannot see code that you running.

Generally, ROOT sql classes do not produce any exceptions.
If such exceptions produced by underlaying libraries (like Oracle does),
all exceptions are catched and not propogated further.

In TSQLServer::Connect() method in case of error you should get NULL pointer and see error output on terminal.

See
http://root.cern.ch/root/html/TMySQLServer.html
or
http://root.cern.ch/root/html/TOracleServer.html
to get more info about correct arguments for different databases.

Regards,
Sergey