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);
}
})
Constructors
constructor
Class Constructornew 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 |
job | IJobInfo |
| The info of the job that is in an error state |
Returns
ArcGISJobError
Properties
Property | Type | Notes |
---|---|---|
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 | |
string | The name of this error. Will always be | |
The status of the job. |
jobInfo
Class PropertyjobInfo: IJobInfo
The information about the current state of the job at the time of the error.
message
Class Propertymessage: string
Formatted error message. See the Error
class for more details.
name
Class Propertyname: string
The name of this error. Will always be "ArcGISJobError"
to conform with the Error
class.
status
Class Propertystatus: JOB_STATUSES
The status of the job.
id: string
The job id.