TileProviderError

new Cesium.TileProviderError(provider, message, x, y, level, timesRetried, error)

Provides details about an error that occurred in an ImageryProvider or a TerrainProvider.
参数名称 类型 默认值 描述信息
provider ImageryProvider | TerrainProvider The imagery or terrain provider that experienced the error.
message string A message describing the error.
x number 可选 The X coordinate of the tile that experienced the error, or undefined if the error is not specific to a particular tile.
y number 可选 The Y coordinate of the tile that experienced the error, or undefined if the error is not specific to a particular tile.
level number 可选 The level of the tile that experienced the error, or undefined if the error is not specific to a particular tile.
timesRetried number 0 可选 The number of times this operation has been retried.
error Error 可选 The error or exception that occurred, if any.

成员(属性)

The error or exception that occurred, if any.
The level-of-detail of the tile that experienced the error. If the error is not specific to a particular tile, this property will be undefined.
The message describing the error.
The ImageryProvider or TerrainProvider that experienced the error.
True if the failed operation should be retried; otherwise, false. The imagery or terrain provider will set the initial value of this property before raising the event, but any listeners can change it. The value after the last listener is invoked will be acted upon.
默认值: false
The number of times this operation has been retried.
默认值: 0
The X coordinate of the tile that experienced the error. If the error is not specific to a particular tile, this property will be undefined.
The Y coordinate of the tile that experienced the error. If the error is not specific to a particular tile, this property will be undefined.

方法

static Cesium.TileProviderError.reportError(previousError, provider, event, message, x, y, level, errorDetails)TileProviderError

Reports an error in an ImageryProvider or TerrainProvider by raising an event if it has any listeners, or by logging the error to the console if the event has no listeners. This method also tracks the number of times the operation has been retried.
参数名称 类型 描述信息
previousError TileProviderError The error instance returned by this function the last time it was called for this error, or undefined if this is the first time this error has occurred.
provider ImageryProvider | TerrainProvider 可选 The imagery or terrain provider that encountered the error.
event Event 可选 The event to raise to inform listeners of the error.
message string 可选 The message describing the error.
x number 可选 The X coordinate of the tile that experienced the error, or undefined if the error is not specific to a particular tile.
y number 可选 The Y coordinate of the tile that experienced the error, or undefined if the error is not specific to a particular tile.
level number 可选 The level-of-detail of the tile that experienced the error, or undefined if the error is not specific to a particular tile.
errorDetails Error 可选 The error or exception that occurred, if any.
返回值:
The error instance that was passed to the event listeners and that should be passed to this function the next time it is called for the same error in order to track retry counts.

static Cesium.TileProviderError.reportSuccess(previousError)

Reports success of an operation by resetting the retry count of a previous error, if any. This way, if the error occurs again in the future, the listeners will be informed that it has not yet been retried.
参数名称 类型 描述信息
previousError TileProviderError The previous error, or undefined if this operation has not previously resulted in an error.

定义的类型

Cesium.TileProviderError.RetryFunction()

A function that will be called to retry the operation.