From dd42e2aaa19b0d0a8dac5b3511dbfa60772ed8de Mon Sep 17 00:00:00 2001 From: Robert Greig Date: Mon, 19 Mar 2007 13:11:41 +0000 Subject: Merged revisions 519933 via svnmerge from https://svn.apache.org/repos/asf/incubator/qpid/branches/M2 ........ r519933 | rgreig | 2007-03-19 12:55:39 +0000 (Mon, 19 Mar 2007) | 1 line Correction to exception type thrown. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@519938 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/qpid/util/ReflectionUtils.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'qpid') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java b/qpid/java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java index 724f504474..495918911a 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java @@ -119,15 +119,15 @@ public class ReflectionUtils } catch (NoSuchMethodException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("NoSuchMethodException.", e); } catch (IllegalAccessException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("IllegalAccessException.", e); } catch (InvocationTargetException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("InvocationTargetException", e); } } @@ -163,15 +163,15 @@ public class ReflectionUtils } catch (NoSuchMethodException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("NoSuchMethodException.", e); } catch (IllegalAccessException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("IllegalAccessException", e); } catch (InvocationTargetException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("InvocationTargetException", e); } } @@ -192,15 +192,15 @@ public class ReflectionUtils } catch (InstantiationException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("InstantiationException", e); } catch (IllegalAccessException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("IllegalAccessException", e); } catch (InvocationTargetException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("InvocationTargetException", e); } } @@ -222,7 +222,7 @@ public class ReflectionUtils } catch (NoSuchMethodException e) { - throw new RuntimeException(e); + throw new ReflectionUtilsException("NoSuchMethodException", e); } } } -- cgit v1.2.1