Solved

MySqlException

Posted on 2004-04-28
7
368 Views
Last Modified: 2007-12-19
Hello everyone,

I have a C# application that makes use of a MySql Database by means of MySQLDirect.NET.  Is there any way to decipher between the different MySqlExceptions.  Such as lost connection, insufficient rights, etc.  I would like to handle the exceptions specifically, but I need to know to tell the difference between the different MySQLExceptions.  Any Suggestions??????????????

Thanks,
Kendal
0
Comment
Question by:gvector1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 10941407
ifits like the other sqlexceptions there will be a Errors property that holds more specific info  ...
0
 

Author Comment

by:gvector1
ID: 10941440
I know that there is error codes.  But is there a list somewhere that tells me which error codes mean what coming from a MySQL Exception????????

Kendal
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Accepted Solution

by:
dfiala13 earned 500 total points
ID: 10941626
This might be a more useful resource going forward...
http://www.mysqlfreaks.com/mysql/manual_Error-handling.html
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 10941648
they are the native error code from mysql

those two documents should have em.
0
 

Author Comment

by:gvector1
ID: 10943891
I have run into a problem.  Some of the error codes I am receiving when I step through debugger is not on the list.  Such as if I try to execute a command after a connection is lost, I get an error 2013 = Lost Connection.  Any idea where that code is coming from?????

Thanks,
Kendal
0
 
LVL 12

Expert Comment

by:dfiala13
ID: 10953439
A quick search of Google seems to indicate that is an issue with an older version of mySQL...

http://www.google.com/search?q=MYsql+2013&hl=en&lr=&ie=UTF-8&oe=UTF-8&start=10&sa=N
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question