Rx.helpers.defaultError(err)

Throws the specified error

Arguments

  1. err (Any): The error to throw

Example

var defaultError = Rx.helpers.defaultError;

// Returns its value
defaultError(new Error('woops'))
// => Error: woops