protected void setErrorDetails(final WebContext context, final String error,
                                   final String errorDescription, final boolean errorWithCallBack) {
        context.setRequestAttribute(OAuth20Constants.ERROR, error);
        context.setRequestAttribute(OAuth20Constants.ERROR_DESCRIPTION, errorDescription);
        context.setRequestAttribute(OAuth20Constants.ERROR_WITH_CALLBACK, errorWithCallBack);
    }
Set the OAuth Error details in the context.

@param context           the context
@param error             the OAuth error
@param errorDescription  the OAuth error description
@param errorWithCallBack does the error will redirect the end-user to the client
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/validator/authorization/BaseOAuth20AuthorizationRequestValidator.java