Merged V3.4 to HEAD (fix for ALF-6558)

23466: Attach causal exception for DuplicateChildNodeNameException (ALF-5488, ALF-5540)
          - Also add savepoints around these updates statements
          - Propagate exception so that we can identify if something else (not duplicate child name) is at fault


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@24837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2011-01-13 20:56:02 +00:00
parent e6ace20a3e
commit c294c6b4fe
2 changed files with 17 additions and 7 deletions

View File

@@ -38,9 +38,9 @@ public class DuplicateChildNodeNameException extends RuntimeException
private QName assocTypeQName;
private String name;
public DuplicateChildNodeNameException(NodeRef parentNodeRef, QName assocTypeQName, String name)
public DuplicateChildNodeNameException(NodeRef parentNodeRef, QName assocTypeQName, String name, Throwable e)
{
super(I18NUtil.getMessage(ERR_DUPLICATE_NAME, name));
super(I18NUtil.getMessage(ERR_DUPLICATE_NAME, name), e);
this.parentNodeRef = parentNodeRef;
this.assocTypeQName = assocTypeQName;
this.name = name;