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)
|
||||
throws TDGWTServiceException {
|
||||
OperationDefinition operationDefinition = null;
|
||||
|
||||
logger.debug("Retrieve Capability from Service");
|
||||
try {
|
||||
operationDefinition = service.getCapability(Long.valueOf(op));
|
||||
} catch (NumberFormatException e) {
|
||||
|
@ -28,13 +28,18 @@ public class OperationDefinitionMap {
|
|||
e.printStackTrace();
|
||||
throw new TDGWTServiceException(
|
||||
"No valid operation type: " + op);
|
||||
|
||||
} catch (NoSuchOperationException e) {
|
||||
logger.error("NoSuchOperationException: " + e.getLocalizedMessage());
|
||||
e.printStackTrace();
|
||||
throw new TDGWTServiceException(
|
||||
"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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue