DeveloperError

new Cesium.DeveloperError(message)

构造一个由于开发人员错误(例如无效参数)而引发的异常对象, 参数超出范围等。 此异常应仅在开发期间引发; 它通常表示调用代码中存在 bug。 此异常绝不应为 抓住;相反,调用代码应努力不生成它。

另一方面,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.