Skip to content

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 blocksCopy
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: ArcGISJobErrorError

Constructors

constructor

Class Constructor
new ArcGISJobError(messagestring, jobInfoIJobInfo): ArcGISJobError

Create a new ArcGISJobError object.

Parameters
ParameterTypeDefaultNotes
messagestring"Unknown error"

The error message from the API

jobInfoIJobInfo

The info of the job that is in an error state

Returns 
ArcGISJobError

Properties

PropertyTypeNotes
idstring

The job id.

jobInfoIJobInfo

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

messagestring

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

namestring

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

statusJOB_STATUSES

The status of the job.

id

Class Property

jobInfo

Class Property

message

Class Property

name

Class Property

status

Class Property

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.