Skip to content

KBE3D / KBCore / Cesium / RequestErrorEvent

类: RequestErrorEvent

An event that is raised when a request encounters an error.

参数

The HTTP error status code, such as 404.

参数

The response included along with the error.

参数

The response headers, represented either as an object literal or as a string in the format returned by XMLHttpRequest's getAllResponseHeaders() function.

属性

statusCode

statusCode: number

The HTTP error status code, such as 404. If the error does not have a particular HTTP code, this property will be undefined.


response

response: any

The response included along with the error. If the error does not include a response, this property will be undefined.


responseHeaders

responseHeaders: any

The headers included in the response, represented as an object literal of key/value pairs. If the error does not include any headers, this property will be undefined.

方法

toString()

toString(): string

Creates a string representing this RequestErrorEvent.

返回

string

A string representing the provided RequestErrorEvent.

构造函数

构造函数

new RequestErrorEvent(statusCode?: number, response?: any, responseHeaders?: any): RequestErrorEvent

参数

statusCode?

number

response?

any

responseHeaders?

any

返回

RequestErrorEvent

KBE3D @3.0.0 Copyright © 2024-present KBE3D