Forward IOException in ClassFileArchiveEntryHandler::toClassFile

Description

The ClassFileArchiveEntryHandler toClassFile method catches an {{IOException }} and rethrows it as an ArchiveException, therefore losing the original context of the IO-related problem.

We should propagate the original exception along with the ArchiveException so that it's easier for the Hibernate user to spot a certain failure.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

5.2.8

Priority

Major