RE: Handling utf8 data from SQLite
- From: "Gavin Lambert" <gavinl compacsort com>
- To: "'Chris Vine'" <chris cvine freeserve co uk>, "'Zettai Muri'" <zettaimuri gmail com>
- Cc: gtkmm-list gnome org
- Subject: RE: Handling utf8 data from SQLite
- Date: Mon, 12 Sep 2011 10:42:46 +1200
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]