RM-2604 Move CaveatException back to the main source.

This was moved by accident as it was hidden among the legacy classes.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/caveatmarkdatatype@114108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tom Page
2015-10-12 10:35:18 +00:00
parent 67d4e29eb7
commit 205ffc8073

View File

@@ -0,0 +1,56 @@
/*
* Copyright (C) 2005-2015 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.module.org_alfresco_module_rm.caveat;
import org.alfresco.error.AlfrescoRuntimeException;
/**
* Generic class for any runtime exception to do with caveats.
*
* @author Tom Page
* @since 2.4.a
*/
public class CaveatException extends AlfrescoRuntimeException
{
/** serial version uid */
private static final long serialVersionUID = -1678248996340040195L;
public CaveatException(String msgId)
{
super(msgId);
}
public CaveatException(String msgId, Throwable cause)
{
super(msgId, cause);
}
/** The supplied caveat mark id was not found in the configured list. */
public static class CaveatMarkNotFound extends CaveatException
{
/** serial version uid */
private static final long serialVersionUID = -7605943340899129129L;
public CaveatMarkNotFound(String caveatMarkId)
{
super("Could not find caveat mark with id " + caveatMarkId);
}
}
}