mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -18,22 +18,32 @@
|
||||
*/
|
||||
package org.alfresco.service.cmr.usage;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public class ContentQuotaException extends AlfrescoRuntimeException
|
||||
public class ContentQuotaException extends QuotaViolationException
|
||||
{
|
||||
private static final long serialVersionUID = 1346806021547860709L;
|
||||
|
||||
public ContentQuotaException(String msg)
|
||||
{
|
||||
super(msg);
|
||||
this(msg, null, -1L, -1L, null);
|
||||
}
|
||||
|
||||
public ContentQuotaException(String msg, Throwable cause)
|
||||
{
|
||||
super(msg, cause);
|
||||
this(msg, cause, -1L, -1L, null);
|
||||
}
|
||||
|
||||
public ContentQuotaException(String msg, long usage, long quotaLimit, QName quotaRestrictedType)
|
||||
{
|
||||
this(msg, null, usage, quotaLimit, quotaRestrictedType);
|
||||
}
|
||||
|
||||
public ContentQuotaException(String msg, Throwable cause, long usage, long quotaLimit, QName quotaRestrictedType)
|
||||
{
|
||||
super(msg, cause, usage, quotaLimit, quotaRestrictedType);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user