Increase breadcrumbs for class lookup failures.

Dex files are loaded early and then queried against. This leads to
IOExceptions for failed to load dex files being unavailable when a findClass
is performed. Its useful to have the IOExceptions as then its possible to
determine why a class wasn't found, for example, because the jar archive was
empty.

This change caches the IOExceptions that occur during the loading of dex files
and then adds them to the suppressed exceptions reported when findClass fails.

Change-Id: I31693400c503a113282f9d094ddfd84ebc3cf6dd
(cherry picked from commit 04205541b4dda4c199a7fe72ab72eb0766a4207c)
1 file changed