Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@99018 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a19878e07d
commit
1eb3f07073
|
@ -20,7 +20,7 @@ public class OperationDefinitionMap {
|
||||||
public static OperationDefinition map(String op, TabularDataService service)
|
public static OperationDefinition map(String op, TabularDataService service)
|
||||||
throws TDGWTServiceException {
|
throws TDGWTServiceException {
|
||||||
OperationDefinition operationDefinition = null;
|
OperationDefinition operationDefinition = null;
|
||||||
|
logger.debug("Retrieve Capability from Service");
|
||||||
try {
|
try {
|
||||||
operationDefinition = service.getCapability(Long.valueOf(op));
|
operationDefinition = service.getCapability(Long.valueOf(op));
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
|
@ -28,13 +28,18 @@ public class OperationDefinitionMap {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new TDGWTServiceException(
|
throw new TDGWTServiceException(
|
||||||
"No valid operation type: " + op);
|
"No valid operation type: " + op);
|
||||||
|
|
||||||
} catch (NoSuchOperationException e) {
|
} catch (NoSuchOperationException e) {
|
||||||
logger.error("NoSuchOperationException: " + e.getLocalizedMessage());
|
logger.error("NoSuchOperationException: " + e.getLocalizedMessage());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new TDGWTServiceException(
|
throw new TDGWTServiceException(
|
||||||
"NoSuchOperationException: " + e.getLocalizedMessage());
|
"NoSuchOperationException: " + e.getLocalizedMessage());
|
||||||
|
} catch(Throwable e) {
|
||||||
|
logger.error("Error Retrieving Service Capability: " + e.getLocalizedMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
throw new TDGWTServiceException(
|
||||||
|
"Error Retrieving Service Capability: " + e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return operationDefinition;
|
return operationDefinition;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue