RequestErrorEvent

new Cesium.RequestErrorEvent(statusCode, response, responseHeaders)

请求遇到错误时引发的事件。
Name Type Description
statusCode number optional HTTP 错误状态码,如 404。
response object optional 与错误一起包含的响应。
responseHeaders string | object optional 响应标头,表示为对象字面量或 XMLHttpRequest 的 getAllResponseHeaders() 函数返回格式的字符串。

Members

响应与错误一起包含。 如果错误不包含响应, 此属性将是 undefined。
响应中包含的标头,表示为键/值对的对象文本。 如果错误不包含任何标头,则此属性将为 undefined。
HTTP 错误状态代码,例如 404。 如果错误没有特定的 HTTP 代码,此属性将是 undefined。

Methods

创建表示此 RequestErrorEvent 的字符串。
Returns:
表示提供的 RequestErrorEvent 的字符串。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.