]> git.ipfire.org Git - thirdparty/squid.git/commit
Made TextException a child of std::exception so that it is easier to catch
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Sep 2008 16:21:43 +0000 (10:21 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Sep 2008 16:21:43 +0000 (10:21 -0600)
commit0a8bbeebedd0ac6b6813890fab16d02bfb88ea4f
tree135aa415852eb48a152aa408a68079626fc4c604
parent71c8e8440e99655228a20c0c1878c757350daafa
Made TextException a child of std::exception so that it is easier to catch
more exceptions (standard and custom) with one catch(). The catching code
usually does not care what the exception is anyway.

TextException needs more work to report more information in what() method.

Catch std::exception to catch more printable exceptions. TextException is an
std::exception [child].

These changes were inspired by and required for eCAP.
src/ICAP/AsyncJob.cc
src/ICAP/AsyncJob.h
src/ICAP/ICAPModXact.cc
src/ICAP/ICAPModXact.h
src/TextException.cc
src/TextException.h
src/http.cc