Skip to content

Commit

Permalink
[FLINK-10695] "Cannot load user class" errors should set the underlyi…
Browse files Browse the repository at this point in the history
…ng ClassNotFoundException as their cause

This closes apache#6945.
  • Loading branch information
A412 authored and tillrohrmann committed Oct 28, 2018
1 parent f1eaf06 commit a13119a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public <T extends StreamOperator<?>> T getStreamOperator(ClassLoader cl) {
"\nClass was actually found in classloader - deserialization issue." :
"\nClass not resolvable through given classloader.");

throw new StreamTaskException(exceptionMessage);
throw new StreamTaskException(exceptionMessage, e);
}
catch (Exception e) {
throw new StreamTaskException("Cannot instantiate user function.", e);
Expand Down

0 comments on commit a13119a

Please sign in to comment.