Skip to content
Snippets Groups Projects
Commit 8016c822 authored by anttil's avatar anttil
Browse files

BIS-16: Bugfix: handle all kinds of exceptions from the service method call.

SVN: 25889
parent 93f9fe96
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,14 @@ public class MethodInvocation implements Serializable
return (Serializable) m.invoke(target, argumentsWithProgressListener);
} catch (InvocationTargetException e)
{
throw (RuntimeException) e.getCause();
Throwable cause = e.getCause();
if (cause instanceof RuntimeException)
{
throw (RuntimeException) e.getCause();
} else
{
throw new RuntimeException(cause);
}
} catch (Exception e)
{
throw new RuntimeException("Method call failed", e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment