Author: tolusha
Date: 2011-10-27 08:53:34 -0400 (Thu, 27 Oct 2011)
New Revision: 5110
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
Log:
EXOJCR-1589: Incorrect type of exception thrown in method NodeImpl.setProperty(String,
Value) when property value violate a node type.`
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2011-10-27
12:30:37 UTC (rev 5109)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/ItemImpl.java 2011-10-27
12:53:34 UTC (rev 5110)
@@ -497,7 +497,8 @@
if (defs == null || defs.getAnyDefinition() == null)
{
- throw new RepositoryException("Property definition '" +
propertyName.getAsString() + "' is not found.");
+ throw new ConstraintViolationException("Property definition '" +
propertyName.getAsString()
+ + "' is not found.");
}
PropertyDefinitionData def = defs.getDefinition(isMultiValue);
Show replies by date