public void throwExceptionIfFailed() throws OAuthBearerIllegalTokenException {
        if (!success())
            throw new OAuthBearerIllegalTokenException(this);
    }
Raise an exception if this instance indicates failure, otherwise do nothing

@throws OAuthBearerIllegalTokenException
            if this instance indicates failure
clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerValidationResult.java