new Cesium.RequestErrorEvent(statusCode, response, responseHeaders)

当请求遇到错误时提出的事件 .
Name Type Description
statusCode number optional The HTTP error status code, such as 404.
response object optional 答复中包括错误.
responseHeaders string | object optional 响应头,作为对象字面或 string in the format returned by XMLHttpRequest's getAllResponseHeaders() function.

Members

response : object

答复中包括错误。 如果错误不包括答复, 此属性将未定义 .

responseHeaders : object

包含在响应中的头,作为按键/值对的对象字元表示. 如果错误不包括任何信头, 此属性将被取消定义 .

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.

Methods

toString()string

创建代表此请求的字符串ErrorEvent .
Returns:
一个字符串代表已提供的请求 ErrorEvent .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.