exception

Gets the exception from the OnError notification.

Returns

(Any): The Exception from the OnError notification.

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

// => Error: invalid

Example

Last updated