类:Domain


🌐 Class: Domain

Domain 类封装了将错误和未捕获异常路由到活动 Domain 对象的功能。

🌐 The Domain class encapsulates the functionality of routing errors and uncaught exceptions to the active Domain object.

要处理它捕获的错误,请监听它的 'error' 事件。

🌐 To handle the errors that it catches, listen to its 'error' event.