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.