Error 对象的添加
¥Additions to Error objects
每当 Error 对象通过域路由时,都会向其中添加一些额外的字段。
¥Any time an Error object is routed through a domain, a few extra fields
are added to it.
-
error.domain最先处理错误的域。¥
error.domainThe domain that first handled the error. -
error.domainEmitter触发带有错误对象的'error'事件的事件触发器。¥
error.domainEmitterThe event emitter that emitted an'error'event with the error object. -
error.domainBound绑定到域的回调函数,并将错误作为其第一个参数传递。¥
error.domainBoundThe callback function which was bound to the domain, and passed an error as its first argument. -
error.domainThrown一个布尔值,指示错误是被抛出、触发还是传递给绑定的回调函数。¥
error.domainThrownA boolean indicating whether the error was thrown, emitted, or passed to a bound callback function.