Solved

MySqlException

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

Expert Comment

by:dfiala13
ID: 10941603
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Technology Partners: 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

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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