RE: Handling utf8 data from SQLite



Quoth Chris Vine:
> try {
>   std::cout << "DB - Password: " << password << std::endl;
> }
> catch (Glib::Exception& e) {
>   std::cerr << e.what().raw() << std::endl;
> }
> catch (std::exception& e) {
>   std::cerr << e.what() << std::endl;
> }

If you're going to catch exceptions as references (which you should), make
sure you catch them as const references.  Otherwise they may not catch all
throw cases.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]