diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2016-08-17 16:42:10 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2016-08-17 16:42:10 -0400 |
commit | 0eac1f41f68bd2cd3b7e73db9eb96c690507b448 (patch) | |
tree | f40eca3208ed39f70f2b6b3d61032db1964aeae6 /indra/llcommon/llexception.cpp | |
parent | 83eb9600631fcb98275b8d3db736f692fd5e6e1c (diff) |
MAINT-5011: Catch kdu_exception (aka int) in case it leaks out.
KDU internally throws kdu_exception, which is a typedef for int. It's possible
that such an exception might leak out.
Our usual strategy for unknown exceptions is to catch (...) and let
boost::current_exception_diagnostic_information() handle them. However, for
int (or a class not derived from std::exception), that function will only
shrug and report no information available.
Besides, we want to format kdu_exception specially anyway. First, the KDU
#defines are in hex, so we should report the value in hex. But on inspection,
certain of those hex values are actually multibyte ASCII literals in disguise
-- so also report the byte string value.
Diffstat (limited to 'indra/llcommon/llexception.cpp')
0 files changed, 0 insertions, 0 deletions