mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package org.alfresco.repo.domain.propval;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import org.alfresco.error.AlfrescoRuntimeException;
|
|
|
|
/**
|
|
* Exception generated when the {@link PropertyValueDAO}
|
|
*
|
|
* @author Derek Hulley
|
|
* @since 3.2
|
|
*/
|
|
public class PropertyUniqueConstraintViolation extends AlfrescoRuntimeException
|
|
{
|
|
private static final long serialVersionUID = -7792036870731759068L;
|
|
|
|
private final Serializable value1;
|
|
private final Serializable value2;
|
|
private final Serializable value3;
|
|
|
|
public PropertyUniqueConstraintViolation(Serializable value1, Serializable value2, Serializable value3, Throwable cause)
|
|
{
|
|
super("Non-unique values for unique constraint: " + value1 + "-" + value2 + "-" + value3, cause);
|
|
this.value1 = value1;
|
|
this.value2 = value2;
|
|
this.value3 = value3;
|
|
}
|
|
|
|
public Serializable getValue1()
|
|
{
|
|
return value1;
|
|
}
|
|
|
|
public Serializable getValue2()
|
|
{
|
|
return value2;
|
|
}
|
|
|
|
public Serializable getValue3()
|
|
{
|
|
return value3;
|
|
}
|
|
}
|