X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fbinding%2Freflection%2FRecordClassBinding.java;h=9bbb257cb8a42bdd5d00f958caf96d3f4a4c2077;hp=c84e76a4a1048261903d7089f60e60c3b74baf2a;hb=96bb7ef9cbe42d82eb58306d8f9b62392cc29ba8;hpb=ae5bb63c5c88f6569518fed2a24df86fbd0570ff diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/RecordClassBinding.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/RecordClassBinding.java index c84e76a4a..9bbb257cb 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/RecordClassBinding.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/RecordClassBinding.java @@ -88,7 +88,7 @@ class RecordClassBinding extends ClassBinding { } catch (IllegalArgumentException e) { throw new BindingException(e); } catch (InvocationTargetException e) { - throw new BindingException(e); + throw new BindingException(e.getCause()); } } @@ -108,7 +108,7 @@ class RecordClassBinding extends ClassBinding { } catch (IllegalAccessException e) { throw new BindingException(e); } catch (InvocationTargetException e) { - throw new BindingException(e); + throw new BindingException(e.getCause()); } } @@ -166,7 +166,7 @@ class RecordClassBinding extends ClassBinding { } catch (IllegalArgumentException e) { throw new BindingException(e); } catch (InvocationTargetException e) { - throw new BindingException(e); + throw new BindingException(e.getCause()); } } @@ -252,8 +252,8 @@ class RecordClassBinding extends ClassBinding { } catch (IllegalArgumentException e) { throw new BindingException(e); } catch (InvocationTargetException e) { - e.printStackTrace(); - throw new BindingException(e); + e.getCause().printStackTrace(); + throw new BindingException(e.getCause()); } } @Override @@ -284,7 +284,7 @@ class RecordClassBinding extends ClassBinding { } catch (IllegalArgumentException e) { throw new BindingException(e); } catch (InvocationTargetException e) { - throw new BindingException(e); + throw new BindingException(e.getCause()); } }