mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +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() + "'");
|
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())
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user