Class
This represents a generic error from a Job. There will be details about the error in the ArcGISJobError.jobInfo.
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 Constructornew ArcGISJobError(message: string, jobInfo: IJobInfo): ArcGISJobErrorCreate a new ArcGISJobError object.
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
message | string | " | The error message from the API |
job | IJobInfo | | The info of the job that is in an error state |
Returns
ArcGISJobErrorProperties
| 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 |
name | string | The name of this error. Will always be |
status | JOB_STATUSES | The status of the job. |