Neil McErlean 2932d7bd72 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
2013-11-22 11:40:52 +00:00

50 lines
1.6 KiB
Java

/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.service.cmr.usage;
import org.alfresco.service.namespace.QName;
/**
*
*/
public class ContentQuotaException extends QuotaViolationException
{
private static final long serialVersionUID = 1346806021547860709L;
public ContentQuotaException(String msg)
{
this(msg, null, -1L, -1L, null);
}
public ContentQuotaException(String msg, Throwable 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);
}
}