类:Domain
\Class: Domain
-
\Extends: <EventEmitter>
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.