RuntimeError

new Cesium.RuntimeError(message)

构造一个由于运行时错误而抛出的异常对象,例如内存不足、无法编译着色器等。如果某个函数可能抛出此异常,调用代码应准备好捕获它。

另一方面,DeveloperError 表示由于开发者错误(例如无效参数)导致的异常,通常表明调用代码中存在错误。
Name Type Description
message string optional 此异常的错误消息。
See:

Extends

  • Error

Members

readonly message : string

解释为何抛出此异常。

readonly name : string

'RuntimeError',指示此异常是由于运行时错误而抛出的。

readonly stack : string

此异常的堆栈跟踪(如果可用)。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.