Constructs an exception object that is thrown due to an error that can occur at runtime, e.g.,
无法编译阴影等。 如果函数可能丢出此选项
除了,呼叫代码应该准备抓住它.
On the other hand, a
On the other hand, a
DeveloperError indicates an exception due
to a developer error, e.g., invalid argument, that usually indicates a bug in the
calling code.
| Name | Type | Description |
|---|---|---|
message |
string | optional 此例外的错误消息 . |
See:
Extends
- Error