public static LdapException create(ResultCode resultCode, String message) {
        return new LdapException(DefaultLdapResultCodeFactory.convertResultCode(resultCode), message, null);
    }
Create an {@link LdapException} from a {@link ResultCode} and message

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