oarevalo/BugLogHQ — pull request #75 by mz83 (2013-12-06 10:58:56+00:00)
Title: [Fix] Provide exception details if the ExtraInfo dump crashes

Here's a fix for another problem a colleague of mine ran into again today:

If dumping the ExtraInfo fails, this will at least provide some information on why that aspect failed and deliver the rest of the data for the original exception.

A common example for this problem is if the ExtraInfo variable contains a reference to a Hibernate object that has lazily initialized properties.
In case the Hibernate session for that object has already been closed (or just plain crashed), the dump process would throw a LazyInitializationException and drag the rest of the bug report with it.

At least in this case we'll still have the message/detail information, both traces and some other data to solve the initial problem.
Since I can't simply make assumptions on which parameters were sent to the notifyService() method I can't report this inner exception as a separate bug through the regular channels and have to provide its details inline.