Added SessionException
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@95755 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
251bfac433
commit
79494188bc
|
@ -29,6 +29,7 @@ import org.gcube.portlets.user.td.gwtservice.server.trservice.OperationsId;
|
|||
import org.gcube.portlets.user.td.gwtservice.server.trservice.TaskStateMap;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.Constants;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -100,7 +101,9 @@ public class ExpressionServiceImpl extends RemoteServiceServlet implements
|
|||
logger.debug("Start Task on service: TaskId " + trTask.getId());
|
||||
ExpressionSession.setColumnFilterTask(session, trTask);
|
||||
return;
|
||||
} catch (Exception e) {
|
||||
} catch (TDGWTSessionExpiredException e){
|
||||
throw new ExpressionServiceException(e.getLocalizedMessage());
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
throw new ExpressionServiceException(
|
||||
"Error in Client Library Request: "
|
||||
|
@ -194,7 +197,9 @@ public class ExpressionServiceImpl extends RemoteServiceServlet implements
|
|||
|
||||
logger.info("ColumnFilterMonitor(): " + columnFilterMonitor);
|
||||
return columnFilterMonitor;
|
||||
} catch (Exception e) {
|
||||
} catch (TDGWTSessionExpiredException e){
|
||||
throw new ExpressionServiceException(e.getLocalizedMessage());
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
throw new ExpressionServiceException(
|
||||
"Error applying column filter: " + e.getLocalizedMessage());
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.gcube.portlets.user.td.expressionwidget.shared.expression;
|
||||
|
||||
|
||||
public class ExpressionServiceException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -9066034060104406559L;
|
||||
|
|
Loading…
Reference in New Issue