Remove catch Throwables identified by Sonar

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109736 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2015-08-07 02:57:57 +00:00
parent 4b42d1f0f4
commit c24479e4b5
3 changed files with 3 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ public abstract class ModulePatchComponent extends AbstractModuleComponent
LOGGER.info(" ... completed module patch '" + getName() + "'"); LOGGER.info(" ... completed module patch '" + getName() + "'");
} }
} }
catch (Throwable exception) catch (Exception exception)
{ {
// record the exception otherwise it gets swallowed // record the exception otherwise it gets swallowed
if (LOGGER.isInfoEnabled()) if (LOGGER.isInfoEnabled())

View File

@@ -129,7 +129,7 @@ public abstract class BaseTransferWebScript extends StreamACP
// execute the transfer operation // execute the transfer operation
tempFile = executeTransfer(transferNode, req, res, status, cache); tempFile = executeTransfer(transferNode, req, res, status, cache);
} }
catch (Throwable e) catch (Exception e)
{ {
throw createStatusException(e, req, res); throw createStatusException(e, req, res);
} }

View File

@@ -148,7 +148,7 @@ public class ExportPost extends StreamACP
throw new WebScriptException(Status.STATUS_BAD_REQUEST, throw new WebScriptException(Status.STATUS_BAD_REQUEST,
"Could not parse JSON from req.", je); "Could not parse JSON from req.", je);
} }
catch(Throwable e) catch(Exception e)
{ {
if (logger.isDebugEnabled()) if (logger.isDebugEnabled())
{ {