You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2017/07/26 21:40:00 UTC
[jira] [Closed] (FC-215) User Add entry already exists exception
[ https://issues.apache.org/jira/browse/FC-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shawn McKinney closed FC-215.
-----------------------------
> User Add entry already exists exception
> ---------------------------------------
>
> Key: FC-215
> URL: https://issues.apache.org/jira/browse/FC-215
> Project: FORTRESS
> Issue Type: Improvement
> Affects Versions: 2.0.0
> Reporter: Shawn McKinney
> Assignee: Shawn McKinney
> Priority: Minor
> Fix For: 2.0.1
>
>
> On user add distinguish between LDAP exception and user already present"
> User create( User entity ) throws CreateException
> {
> ...
> catch ( LdapEntryAlreadyExistsException e )
> {
> String error = "create userId [" + entity.getUserId() + "] failed, already exists in directory";
> ...
> }
> catch ( LdapException e )
> {
> String error = "create userId [" + entity.getUserId() + "] caught LDAPException=" + e.getMessage();
> ....
> }
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)