summaryrefslogtreecommitdiff
path: root/java/common/src
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2007-03-19 12:55:39 +0000
committerRobert Greig <rgreig@apache.org>2007-03-19 12:55:39 +0000
commitb0ac19ea8eabe6dc06a23314c5de69e90eaa1e7b (patch)
tree85ccbe909eb227686066eba9e7cf9d658c4e2b49 /java/common/src
parente6e1ee7c3c22b0c4ecd371fc1203c254723b42f0 (diff)
downloadqpid-python-b0ac19ea8eabe6dc06a23314c5de69e90eaa1e7b.tar.gz
Correction to exception type thrown.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@519933 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
-rw-r--r--java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java b/java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java
index 724f504474..495918911a 100644
--- a/java/common/src/main/java/org/apache/qpid/util/ReflectionUtils.java
+++ b/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);
}
}
}