diff options
author | Jouni Koivuviita <jouni@vaadin.com> | 2012-08-07 15:35:55 +0300 |
---|---|---|
committer | Jouni Koivuviita <jouni@vaadin.com> | 2012-08-07 15:35:55 +0300 |
commit | d422eba61ba6e8ef82c72fa661ff4991f8918ec0 (patch) | |
tree | 1e4f1c8f7f2d8b3543eed1991709a43889466446 /src/com/vaadin/terminal/gwt/server/ServerRpcManager.java | |
parent | ef744edf4a0e849932d30bd9d6870ec15f391225 (diff) | |
parent | 23fcb95f1a8b2fda7f6b7d648634ec21463da875 (diff) | |
download | vaadin-framework-d422eba61ba6e8ef82c72fa661ff4991f8918ec0.tar.gz vaadin-framework-d422eba61ba6e8ef82c72fa661ff4991f8918ec0.zip |
Boxlayout
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server/ServerRpcManager.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/ServerRpcManager.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java b/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java index 07f83864c2..d9931a9610 100644 --- a/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java +++ b/src/com/vaadin/terminal/gwt/server/ServerRpcManager.java @@ -5,6 +5,7 @@ package com.vaadin.terminal.gwt.server; import java.lang.reflect.Field; +import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; @@ -66,9 +67,10 @@ public class ServerRpcManager<T> implements RpcManager { * non-null target of the RPC call * @param invocation * method invocation to perform + * @throws RpcInvocationException */ public static void applyInvocation(RpcTarget target, - ServerRpcMethodInvocation invocation) { + ServerRpcMethodInvocation invocation) throws RpcInvocationException { RpcManager manager = target.getRpcManager(invocation .getInterfaceClass()); if (manager != null) { @@ -109,7 +111,8 @@ public class ServerRpcManager<T> implements RpcManager { * @param invocation * method invocation to perform */ - public void applyInvocation(ServerRpcMethodInvocation invocation) { + public void applyInvocation(ServerRpcMethodInvocation invocation) + throws RpcInvocationException { Method method = invocation.getMethod(); Class<?>[] parameterTypes = method.getParameterTypes(); Object[] args = new Object[parameterTypes.length]; @@ -125,7 +128,7 @@ public class ServerRpcManager<T> implements RpcManager { try { method.invoke(implementation, args); } catch (Exception e) { - throw new RuntimeException("Unable to invoke method " + throw new RpcInvocationException("Unable to invoke method " + invocation.getMethodName() + " in " + invocation.getInterfaceName(), e); } |