
public class RequestPermissionException extends RequestException
RequestBuilder attempts to make a request
to a URL which violates the Same-Origin Security
Policy.
Note: this exception will only be thrown by browsers that do not support
CORS, i.e. Internet Explorer up to
version 9. All other browsers will instead return a
status code of 0. Internet Explorer can
also be configured to allow such cross-origin requests without error and
without using CORS.
com.google.gwt.http.HTTP.
| Constructor and Description |
|---|
RequestPermissionException(String url)
Constructs an instance of this class for the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getURL()
Returns the URL which we cannot access.
|
addSuppressed, fillInStackTrace, getBackingJsObject, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, of, printStackTrace, printStackTrace, setStackTrace, toStringpublic RequestPermissionException(String url)
url - the URL which cannot be accessedpublic String getURL()
Copyright © 2018. All rights reserved.