A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-request/ArcGISJobError/ below:

ArcGISJobError | ArcGIS REST JS

Class

This represents a generic error from a Job. There will be details about the error in the ArcGISJobError.jobInfo.

Use dark colors for code blocks Copy

1
2
3
4
5
6
job.getAllResults().catch(e => {
  if(e.name === "ArcGISJobError") {
    console.log("Something went wrong with the job", e);
    console.log("Full job info", e.jobInfo);
  }
})

Inheritance: ArcGISJobError Error

Constructors constructor Class Constructor new ArcGISJobError(message: string, jobInfo: IJobInfo): ArcGISJobError

Create a new ArcGISJobError object.

Parameters Parameter Type Default Notes message string "Unknown error"

The error message from the API

jobInfo IJobInfo

The info of the job that is in an error state

Returns ArcGISJobError Properties Property Type Notes id string

The job id.

jobInfo IJobInfo

The information about the current state of the job at the time of the error.

message string

Formatted error message. See the Error class for more details.

name string

The name of this error. Will always be "ArcGISJobError" to conform with the Error class.

status JOB_STATUSES

The status of the job.

jobInfo Class Property jobInfo: IJobInfo

The information about the current state of the job at the time of the error.

message Class Property message: string

Formatted error message. See the Error class for more details.

name Class Property name: string

The name of this error. Will always be "ArcGISJobError" to conform with the Error class.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4