ArcGISJobError

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

new ArcGISJobError(messagestring, jobInfoIJobInfo): ArcGISJobError

Create a new ArcGISJobError object.

Parameters
ParameterTypeDefaultNotes
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

PropertyTypeNotes
string

The job id.

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

string

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

string

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

The status of the job.

id

Class Property
id: string

The job id.

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.

status

Class Property
status: JOB_STATUSES

The status of the job.

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