docs: public void generateError(String response) {
          final String errorInString = extractParameter(response, ERROR_REGEX_PATTERN, true);
          final String errorDescription = extractParameter(response, ERROR_DESCRIPTION_REGEX_PATTERN, false);
          final String errorUriInString = extractParameter(response, ERROR_URI_REGEX_PATTERN, false);
          URI errorUri;
          try {
              errorUri = errorUriInString == null ? null : URI.create(errorUriInString);
          } catch (IllegalArgumentException iae) {
              errorUri = null;
          }
  
          OAuth2Error errorCode;
          try {
              errorCode = OAuth2Error.parseFrom(errorInString);
          } catch (IllegalArgumentException iaE) {
              //non oauth standard error code
              errorCode = null;
          }
  
          throw new OAuth2AccessTokenErrorResponse(errorCode, errorDescription, errorUri, response);
      }