protected Event getAuthenticationFailureErrorEvent(final RequestContext context,
                                                       final Exception exception) {
        return eventFactory.error(this, exception);
    }
New event event.

@param id the id
@return the event
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/AbstractCasWebflowEventResolver.java