public void error(String errorCode, String errorDescription, String errorUri) {
        if (Objects.requireNonNull(errorCode).isEmpty())
            throw new IllegalArgumentException("error code must not be empty");
        this.errorCode = errorCode;
        this.errorDescription = errorDescription;
        this.errorUri = errorUri;
        this.token = null;
    }
Set the error values as per
<a href="https://tools.ietf.org/html/rfc6749#section-5.2">RFC 6749: The OAuth
2.0 Authorization Framework</a>. Any token is cleared.

@param errorCode
           the mandatory error code to set
@param errorDescription
           the optional error description to set
@param errorUri
           the optional error URI to set
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/OAuthBearerTokenCallback.java