Added a new constructor with diagnostic message.
Used that new constructor in the handler to report better information to the user in the case something went wrong.

git-svn-id: https://svn.apache.org/repos/asf/directory/shared/trunk@1508543 13f79535-47bb-0310-9956-ffa450edef68