]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/src/org/simantics/databoard/binding/reflection/RecordClassBinding.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / binding / reflection / RecordClassBinding.java
index c84e76a4a1048261903d7089f60e60c3b74baf2a..9bbb257cb8a42bdd5d00f958caf96d3f4a4c2077 100644 (file)
@@ -88,7 +88,7 @@ class RecordClassBinding extends ClassBinding {
                } catch (IllegalArgumentException e) {
                        throw new BindingException(e);
                } catch (InvocationTargetException e) {
                } 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) {
                        } 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) {
                } 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) {
                } 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
                }                                       
        }               
        @Override
@@ -284,7 +284,7 @@ class RecordClassBinding extends ClassBinding {
                } catch (IllegalArgumentException e) {
                        throw new BindingException(e);
                } catch (InvocationTargetException e) {
                } catch (IllegalArgumentException e) {
                        throw new BindingException(e);
                } catch (InvocationTargetException e) {
-                       throw new BindingException(e);\r
+                       throw new BindingException(e.getCause());\r
                }                                       
        }\r
        \r
                }                                       
        }\r
        \r