public static LdapException create(ILdapResult result) {
        return new LdapException(result.getResultCode(), result.getMessage(), null);
    }
Create an {@link LdapException} from an {@link ILdapResult}

@param result the result code
@return a new LDAPException
gateway/engine/core/src/main/java/io/apiman/gateway/engine/components/ldap/result/DefaultExceptionFactory.java