How to use the @esri/arcgis-rest-request.ArcGISRequestError function in @esri/arcgis-rest-request

To help you get started, we’ve selected a few @esri/arcgis-rest-request examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Esri / solution.js / src / itemFactory.js View on Github external
.then(resolve);
                    }, function () {
                        // If it fails, try URL for group base section
                        groups.getGroup(id, requestOptions)
                            .then(function (itemSection) {
                            var newGroup = new group_1.Group(itemSection);
                            newGroup.init(requestOptions)
                                .then(resolve);
                        }, function () {
                            var error = new arcgis_rest_request_1.ArcGISRequestError("Item or group does not exist or is inaccessible.");
                            reject(error);
                        });
                    });
                }
                catch (notUsed) {
                    var error = new arcgis_rest_request_1.ArcGISRequestError("Item or group does not exist or is inaccessible.");
                    reject(error);
                }
            });
        };
github Esri / solution.js / src / itemFactory.ts View on Github external
() => {
              // A failure to get an id causes an error response from this function regardless of how
              // many valid ids were also supplied
              let error = new ArcGISRequestError(
              "Item or group does not exist or is inaccessible."
            );
            reject(error);
          }
      );