Testcase fix following previous bugfix for CLOUD-2069.

I hadn't realised that there was one specific quota exception class in the repository project: ContentQuotaException.
There were no exceptions for person/user-related quotas. So I have moved my new QuotaViolationException from Thor into the core repo and have refactored the existing ContentQuotaException so that it extends QuotaViolationException, retaining AlfrescoRuntimeException as a base type for backwards compatibility.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@58135 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Neil McErlean
2013-11-22 11:40:52 +00:00
parent 1658cfe76b
commit 2932d7bd72
3 changed files with 92 additions and 5 deletions

View File

@@ -450,7 +450,7 @@ public class ContentUsageImpl implements ContentUsageService,
", usage=" + currentSize +
", quota=" + quotaSize);
}
throw new ContentQuotaException("User quota exceeded");
throw new ContentQuotaException("User quota exceeded", newSize, quotaSize, ContentModel.TYPE_CONTENT);
}
NodeRef personNodeRef = getPerson(userName);