diff options
Diffstat (limited to 'ridljar')
-rw-r--r-- | ridljar/com/sun/star/uno/Type.java | 2 | ||||
-rw-r--r-- | ridljar/com/sun/star/uno/UnoRuntime.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ridljar/com/sun/star/uno/Type.java b/ridljar/com/sun/star/uno/Type.java index adbcebdd51c3..a4da5b1377d5 100644 --- a/ridljar/com/sun/star/uno/Type.java +++ b/ridljar/com/sun/star/uno/Type.java @@ -284,7 +284,7 @@ public class Type { Class.forName(i < 0 ? typeName : typeName.substring(0, i)), false, i >= 0); } catch (ClassNotFoundException e) { - throw new RuntimeException(e.toString()); + throw new RuntimeException(e); } } diff --git a/ridljar/com/sun/star/uno/UnoRuntime.java b/ridljar/com/sun/star/uno/UnoRuntime.java index 5576c2c08591..40403cdc3908 100644 --- a/ridljar/com/sun/star/uno/UnoRuntime.java +++ b/ridljar/com/sun/star/uno/UnoRuntime.java @@ -247,7 +247,7 @@ public class UnoRuntime { fs = TypeDescription.getTypeDescription(t). getFieldDescriptions(); } catch (ClassNotFoundException e) { - throw new java.lang.RuntimeException(e.toString()); + throw new java.lang.RuntimeException(e); } for (int i = 0; i< fs.length; ++i) { Type ft = new Type(fs[i].getTypeDescription()); @@ -263,7 +263,7 @@ public class UnoRuntime { return false; } } catch (IllegalAccessException e) { - throw new java.lang.RuntimeException(e.toString()); + throw new java.lang.RuntimeException(e); } } return true; @@ -338,7 +338,7 @@ public class UnoRuntime { } catch (java.lang.RuntimeException e) { throw e; } catch (java.lang.Exception e) { - throw new java.lang.RuntimeException(e.toString()); + throw new java.lang.RuntimeException(e); } case TypeClass.ENUM_value: try { @@ -347,7 +347,7 @@ public class UnoRuntime { } catch (java.lang.RuntimeException e) { throw e; } catch (java.lang.Exception e) { - throw new java.lang.RuntimeException(e.toString()); + throw new java.lang.RuntimeException(e); } default: throw new IllegalArgumentException( |