mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -119,7 +119,7 @@ public abstract class ModulePatchComponent extends AbstractModuleComponent
|
||||
LOGGER.info(" ... completed module patch '" + getName() + "'");
|
||||
}
|
||||
}
|
||||
catch (Throwable exception)
|
||||
catch (Exception exception)
|
||||
{
|
||||
// record the exception otherwise it gets swallowed
|
||||
if (LOGGER.isInfoEnabled())
|
||||
|
@@ -129,7 +129,7 @@ public abstract class BaseTransferWebScript extends StreamACP
|
||||
// execute the transfer operation
|
||||
tempFile = executeTransfer(transferNode, req, res, status, cache);
|
||||
}
|
||||
catch (Throwable e)
|
||||
catch (Exception e)
|
||||
{
|
||||
throw createStatusException(e, req, res);
|
||||
}
|
||||
|
@@ -148,7 +148,7 @@ public class ExportPost extends StreamACP
|
||||
throw new WebScriptException(Status.STATUS_BAD_REQUEST,
|
||||
"Could not parse JSON from req.", je);
|
||||
}
|
||||
catch(Throwable e)
|
||||
catch(Exception e)
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
|
Reference in New Issue
Block a user