I’m trying to test the new DatabaseException of API 2 with a MySqlCommunityServer. The following code will connect to the database successfully when I provide the correct values for the mDatabaseID properties. However, when I intentionally provide an invalid value for any of the properties there is a DatabaseException raised but it is not caught. Instead, it drops in to the debugger. Is there something I’m missing?
[code]mDatabaseID = New MySQLCommunityServer
mDatabaseID.Host = sHost
mDatabaseID.Port = iPort
mDatabaseID.UserName = sUser
mDatabaseID.Password = sPassword
mDatabaseID.DatabaseName = sDatabase
Catch error As DatabaseException
MessageDialog.Show("Database error. " + error.Message)
Thank you for any help you can provide.