mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Make the error message a bit more helpful, in the case that the assoc qname is too long
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@38099 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -317,7 +317,8 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
|
||||
ParameterCheck.mandatory("nodeTypeQName", nodeTypeQName);
|
||||
if(assocQName.getLocalName().length() > QName.MAX_LENGTH)
|
||||
{
|
||||
throw new IllegalArgumentException("Localname is too long");
|
||||
throw new IllegalArgumentException("Localname is too long. Length of " +
|
||||
assocQName.getLocalName().length() + " exceeds the maximum of " + QName.MAX_LENGTH);
|
||||
}
|
||||
|
||||
// Get the parent node
|
||||
|
Reference in New Issue
Block a user