DeveloperError

new Cesium.DeveloperError(message)

构造因开发者错误而抛出的异常对象,例如无效参数、 参数超出范围等。此异常应仅在开发期间抛出; 通常表示调用代码中存在错误。此异常永远不应被 捕获;相反,调用代码应努力不产生此异常。

另一方面,RuntimeError表示可能在运行时 抛出的异常,例如内存不足,调用代码应准备 捕获它。
Name Type Description
message string optional 此异常的错误消息。
See:

Extends

  • Error

Members

readonly message : string

解释为何抛出此异常。
'DeveloperError'表示此异常因开发者错误而抛出。

readonly stack : string

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