Fixed Template Not Compatible Exception message error
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@114769 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fc45f8c186
commit
413c7901ab
|
@ -43,6 +43,7 @@ import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationProvider;
|
|||
import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken;
|
||||
import org.gcube.data.analysis.tabulardata.commons.utils.Licence;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.exception.NoSuchTemplateException;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.exception.TemplateNotCompatibleException;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.TabularResourceType;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.TaskStatus;
|
||||
import org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription;
|
||||
|
@ -311,9 +312,10 @@ import com.google.gwt.user.server.rpc.RemoteServiceServlet;
|
|||
*/
|
||||
public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||
TDGWTService {
|
||||
private static final String NO_VALID_TABULAR_RESOURCE_ID_PRESENT = "No valid tabular resource id present";
|
||||
private static final String TABULAR_RESOURCE_IS_FINAL = "Tabular Resource Is Final";
|
||||
private static final String TABULAR_RESOURCE_IS_LOCKED = "Tabular Resource Is Locked";
|
||||
private static final String TEMPLATE_NOT_COMPATIBLE_EXCEPTION = "Template not compatible with this tabular resource!";
|
||||
private static final String NO_VALID_TABULAR_RESOURCE_ID_PRESENT = "No valid tabular resource id present!";
|
||||
private static final String TABULAR_RESOURCE_IS_FINAL = "Tabular Resource Is Final!";
|
||||
private static final String TABULAR_RESOURCE_IS_LOCKED = "Tabular Resource Is Locked!";
|
||||
private static final String SECURITY_EXCEPTION_RIGHTS = "Security exception, you don't have the required rights!";
|
||||
|
||||
private static final long serialVersionUID = -5707400086333186368L;
|
||||
|
@ -6561,7 +6563,11 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
SessionUtil.setStartedTask(session, taskWrapper);
|
||||
|
||||
return trTask.getId().getValue();
|
||||
|
||||
|
||||
} catch (TemplateNotCompatibleException e){
|
||||
logger.debug(TEMPLATE_NOT_COMPATIBLE_EXCEPTION);
|
||||
e.printStackTrace();
|
||||
throw new TDGWTServiceException(TEMPLATE_NOT_COMPATIBLE_EXCEPTION);
|
||||
} catch (TDGWTServiceException e) {
|
||||
throw e;
|
||||
} catch (SecurityException e) {
|
||||
|
|
Loading…
Reference in New Issue