reportError

fun reportError(previousError: TileProviderError, event: DefaultEvent? = definedExternally, message: String? = definedExternally, x: Double? = definedExternally, y: Double? = definedExternally, level: Int? = definedExternally, errorDetails: Error? = definedExternally): TileProviderError(source)

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.

Return

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.

Parameters

previousError

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

The imagery or terrain provider that encountered the error.

event

The event to raise to inform listeners of the error.

message

The message describing the error.

x

The X coordinate of the tile that experienced the error, or undefined if the error is not specific to a particular tile.

y

The Y coordinate of the tile that experienced the error, or undefined if the error is not specific to a particular tile.

level

The level-of-detail of the tile that experienced the error, or undefined if the error is not specific to a particular tile.

errorDetails

The error or exception that occurred, if any.

See also


fun reportError(previousError: TileProviderError, provider: ImageryProvider, event: DefaultEvent? = definedExternally, message: String? = definedExternally, x: Double? = definedExternally, y: Double? = definedExternally, level: Int? = definedExternally, errorDetails: Error? = definedExternally): TileProviderError(source)
fun reportError(previousError: TileProviderError, provider: TerrainProvider, event: DefaultEvent? = definedExternally, message: String? = definedExternally, x: Double? = definedExternally, y: Double? = definedExternally, level: Int? = definedExternally, errorDetails: Error? = definedExternally): TileProviderError(source)