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 Constructornew ArcGISJobError(message:Â string,âjobInfo:Â IJobInfo): ArcGISJobError
Create a new ArcGISJobError
object.
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 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: 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