Rx.Notification.prototype.exception

Gets the exception from the OnError notification.

返回值

(Any): The Exception from the OnError notification.

Example

var notification = Rx.Notification.createOnError(new Error('invalid'));
console.log(notification.exception);

// => Error: invalid