Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classpath Scanner swallows Instantiation Exceptions #866

Closed
stummb opened this issue Oct 17, 2014 · 1 comment
Closed

Classpath Scanner swallows Instantiation Exceptions #866

stummb opened this issue Oct 17, 2014 · 1 comment
Labels
Milestone

Comments

@stummb
Copy link

@stummb stummb commented Oct 17, 2014

try {
ClassUtils.instantiate(className, classLoader);
} catch (Exception e) {
throw new FlywayException("Unable to instantiate class: " + className);
}

with that, I have no chance to debug my code in order to find out why the instantiation fails. The original exception should be added as cause to FlywayException.

@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Nov 21, 2014

Good catch! Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.