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:
Nick Burch
2012-06-20 22:26:38 +00:00
parent 74a9e650c2
commit ae19fb057e

View File

@@ -317,7 +317,8 @@ public class DbNodeServiceImpl extends AbstractNodeServiceImpl
ParameterCheck.mandatory("nodeTypeQName", nodeTypeQName); ParameterCheck.mandatory("nodeTypeQName", nodeTypeQName);
if(assocQName.getLocalName().length() > QName.MAX_LENGTH) 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 // Get the parent node