Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 716 Bytes

File metadata and controls

39 lines (23 loc) · 716 Bytes

Notifies the observer that an exception has occurred.

Arguments

  1. error (Any): The error that has occurred.

{% if book.isPdf %}

var observer = Rx.Observer.create(
  x => console.log(`onNext: ${x}`),
  e => console.log(`onError: ${e}`),
  () => console.log('onCompleted'));

observer.onError(new Error('error!!'));
// => onError: Error: error!!

{% else %}

Example

{% endif %}

{% if book.isPdf %}

{% else %}

Location

  • rx.js

{% endif %}