248249250251252253254255256257258
onLoadError(request, new HttpInstallFailure(request.url, textIntro, e), false); } } else { onLoadError(request, new HttpDownloadFailure(request.url, xhr.getStatus(), xhr.getStatusText()), true); } } } });
626364656667686970
} private static void cleanup(RequestData request) { boolean neverCalled = clearAsyncCallback(request.getFragment()); if (neverCalled) { request.onLoadError(new HttpDownloadFailure(request.getUrl(), 404, "Script Tag Failure - no status available"), true); } }
5960616263646566
&& response != null && response.length() != 0) { request.tryInstall(response); } else { // If the download fails request.onLoadError(new HttpDownloadFailure(request.getUrl(), status, statusText), true); } }
4445464748495051
installScriptTag(scriptTag); } } protected static void callOnLoadError(RequestData request) { request.onLoadError(new HttpDownloadFailure(request.getUrl(), 404, "Script Tag Failure - no status available"), true); }