Skip to content
Snippets Groups Projects
Commit ac84cc03 authored by felmer's avatar felmer
Browse files

interceptor for exception translation added

SVN: 15724
parent bfccd5cf
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter; ...@@ -22,6 +22,7 @@ import org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import ch.systemsx.cisd.common.spring.ServiceExceptionTranslator;
import ch.systemsx.cisd.openbis.plugin.screening.shared.ResourceNames; import ch.systemsx.cisd.openbis.plugin.screening.shared.ResourceNames;
import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.IScreeningApiServer; import ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.IScreeningApiServer;
...@@ -43,6 +44,7 @@ public class ScreeningApiServiceServer extends HttpInvokerServiceExporter ...@@ -43,6 +44,7 @@ public class ScreeningApiServiceServer extends HttpInvokerServiceExporter
{ {
setServiceInterface(IScreeningApiServer.class); setServiceInterface(IScreeningApiServer.class);
setService(server); setService(server);
setInterceptors(new Object[] {new ServiceExceptionTranslator()});
super.afterPropertiesSet(); super.afterPropertiesSet();
} }
......
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