public static Event from(final Throwable exception, final RequestContext requestContext) {
        if (isSupportedException(exception)) {
            return EVENT_FACTORY_SUPPORT.event(exception, CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE);
        }
        if (isSupportedException(exception.getCause())) {
            return EVENT_FACTORY_SUPPORT.event(exception.getCause(), CasWebflowConstants.TRANSITION_ID_AUTHENTICATION_FAILURE);
        }
        return EVENT_FACTORY_SUPPORT.event(exception, CasWebflowConstants.TRANSITION_ID_ERROR);
    }
This is {@link WebflowExceptionTranslator}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/WebflowExceptionTranslator.java