MySQL Forums
Forum List  »  Connector/C++

Re: connector 8 Session exception
Posted by: Luis Silva
Date: April 26, 2019 03:29AM

Also, please add exception handler to your code to get the error:

int main()
try {
Session sess("localhost", 33060, "user", "password");
}
catch (const Error &err)
{
cout <<"ERROR: " <<err <<endl;
}
catch (std::exception &ex)
{
cout <<"STD EXCEPTION: " <<ex.what() <<endl;
}
catch (const char *ex)
{
cout <<"EXCEPTION: " <<ex <<endl;
}

Options: ReplyQuote


Subject
Views
Written By
Posted
2515
April 23, 2019 07:11PM
1080
April 24, 2019 05:02PM
1063
April 25, 2019 04:24PM
1035
April 26, 2019 03:08AM
Re: connector 8 Session exception
1236
April 26, 2019 03:29AM
1076
April 26, 2019 07:56AM
1013
April 26, 2019 08:12AM
1144
April 26, 2019 11:04AM
1091
April 26, 2019 11:07AM
1074
April 30, 2019 08:16AM
2167
May 05, 2019 11:40AM
1019
November 27, 2019 10:51PM
873
November 28, 2019 03:49AM
959
February 03, 2020 12:21PM
732
February 04, 2020 09:13AM
817
February 07, 2020 01:03PM
822
February 11, 2020 12:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.