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
Solved

MySqlException

Posted on 2004-04-28
7
362 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
  • 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
 
LVL 12

Expert Comment

by:dfiala13
ID: 10941603
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 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