Fixed major issues (Preserve Stack Trace) reported in Sonar

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@89724 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-11-01 20:35:11 +00:00
parent acf3a49de5
commit c0f99cf06c
2 changed files with 11 additions and 11 deletions

View File

@@ -471,7 +471,7 @@ public class HoldServiceImpl extends ServiceBaseImpl
} }
catch (AccessDeniedException ade) catch (AccessDeniedException ade)
{ {
throw new AlfrescoRuntimeException("Can't delete hold, because you don't have filling permissions on all the items held within the hold."); throw new AlfrescoRuntimeException("Can't delete hold, because you don't have filling permissions on all the items held within the hold.", ade);
} }
} }

View File

@@ -267,7 +267,7 @@ public final class WebScriptUtils
} }
catch (JSONException error) catch (JSONException error)
{ {
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not put the key '" + key + "' with the value '" + value + "' to the json object."); throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Could not put the key '" + key + "' with the value '" + value + "' to the json object.", error);
} }
} }