Re: Client library - Exception handling?

2001-02-09 Thread Sinisa Milivojevic

Chris Hundley writes:
  Are you suggesting that I look at the mysql++ code as an example, or actually use the
  mysql++ code instead of the "mysql.h" included libraries?
  
  Chris
  


HI!

You can not look at mysql++ code and code like that with C API.

You should either use C API (therefore no try {} catch{}) or use C++
API instead of C API.


Regards,

Sinisa

    __ _   _  ___ ==  MySQL AB
 /*/\*\/\*\   /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
/*/ /*/ /*/   \*\_   |*|   |*||*| mailto:[EMAIL PROTECTED]
   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*| Larnaca, Cyprus
  /*/ /*/  /*/\*\_/*/ \*\_/*/ |*|
  /*/^^^\*\^^^
 /*/ \*\Developers Team

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Client library - Exception handling?

2001-02-08 Thread Chris Hundley

Are you suggesting that I look at the mysql++ code as an example, or actually use the
mysql++ code instead of the "mysql.h" included libraries?

Chris

Sinisa Milivojevic wrote:

 Chris Hundley writes:
   Can I implement some sort of exception handling when using the mySQL
   client library? I'm running an application and when I issue a query with
   an error in it, I catch the error and print output, but the software
   throws a general exception. Should this code be in a
   try
   {
  
   }
   catch
   {}
  
   routine? If so, what type of exception should I be catching? Sorry if
   this is a stupid question, I'm newer to C++.
  
   Chris
  
  

 Hi!

 This feature is fully supported in our C++ API, MySQL++, which even
 has two different optional ways in catching the errors, as explained
 in it's manual.

 Regards,

 Sinisa

     __ _   _  ___ ==  MySQL AB
  /*/\*\/\*\   /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic
 /*/ /*/ /*/   \*\_   |*|   |*||*| mailto:[EMAIL PROTECTED]
/*/ /*/ /*/\*\/*/  \*\|*|   |*||*| Larnaka, Cyprus
   /*/ /*/  /*/\*\_/*/ \*\_/*/ |*|
   /*/^^^\*\^^^
  /*/ \*\Developers Team

 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Client library - Exception handling?

2001-02-07 Thread Chris Hundley

Can I implement some sort of exception handling when using the mySQL
client library? I'm running an application and when I issue a query with
an error in it, I catch the error and print output, but the software
throws a general exception. Should this code be in a
try
{

}
catch
{}

routine? If so, what type of exception should I be catching? Sorry if
this is a stupid question, I'm newer to C++.

Chris


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php