code: public static LdapException create(ILdapResult result) {
          return new LdapException(result.getResultCode(), result.getMessage(), null);
      }
docs: Create an {@link LdapException} from an {@link ILdapResult}
  
  @param result the result code
  @return a new LDAPException