dist/angular2-json-schema-form.js
/**
 * Creates an Observable that emits no items to the Observer and immediately
 * emits an error notification.
 *
 * <span class="informal">Just emits 'error', and nothing else.
 * </span>
 *
 * <img src="./img/throw.png" width="100%">
 *
 * This static operator is useful for creating a simple Observable that only
 * emits the error notification. It can be used for composing with other
 * Observables, such as in a {@link mergeMap}.
 *
 * @example <caption>Emit the number 7, then emit an error.</caption>
 * import { throwError, concat, of } from 'rxjs/create';
 *
 * const result = concat(of(7), throwError(new Error('oops!')));
 * result.subscribe(x => console.log(x), e => console.error(e));
 *
 * @example <caption>Map and flatten numbers to the sequence 'a', 'b', 'c', but throw an error for 13</caption>
 * import { throwError, interval, of } from 'rxjs/create';
 * import { mergeMap } from 'rxjs/operators';
 *
 * interval(1000).pipe(
 *   mergeMap(x => x === 13 ?
 *     throwError('Thirteens are bad') :
 *     of('a', 'b', 'c')
 *   )
 * ).subscribe(x => console.log(x), e => console.error(e));
 *
 * @see {@link create}
 * @see {@link empty}
 * @see {@link never}
 * @see {@link of}
 *
 * @param {any} error The particular Error to pass to the error notification.
 * @param {Scheduler} [scheduler] A {@link IScheduler} to use for scheduling
 * the emission of the error notification.
 * @return {Observable} An error Observable: emits only the error notification
 * using the given error argument.
 * @static true
 * @name throw
 * @owner Observable
 */
Creates an Observable that emits no items to the Observer and immediately
emits an error notification.

Just emits 'error', and nothing else.



This static operator is useful for creating a simple Observable that only
emits the error notification. It can be used for composing with other
Observables, such as in a  mergeMap.

@example Emit the number 7, then emit an error.
import { throwError, concat, of } from 'rxjs/create'.









@param {any} error The particular Error to pass to the error notification.
@param {Scheduler} [scheduler] A  IScheduler to use for scheduling
the emission of the error notification.
@return {Observable} An error Observable: emits only the error notification
using the given error argument.
@static true
@name throw
@owner Observable
Creates an Observable that emits no items to the Observer and immediately emits an error notification . Just emits ' error ' and nothing else . This static operator is useful for creating a simple Observable that only emits the error notification . It can be used for composing with other Observables such as in a mergeMap . @example Emit the number 7 then emit an error . import { throwError concat of } from ' rxjs / create ' . @param { any } error The particular Error to pass to the error notification . @param { Scheduler } [ scheduler ] A IScheduler to use for scheduling the emission of the error notification . @return { Observable } An error Observable : emits only the error notification using the given error argument . @static true @name throw @owner Observable
function throwError(error, scheduler) {
    if (!scheduler) {
        return new Observable$1(function (subscriber) { return subscriber.error(error); });
    }
    else {
        return new Observable$1(function (subscriber) { return scheduler.schedule(dispatch$1, 0, { error: error, subscriber: subscriber }); });
    }
}
function throwError ( error , scheduler ) { if ( ! scheduler ) { return new Observable$1 ( function ( subscriber ) { return subscriber . error ( error ) ; } ) ; } else { return new Observable$1 ( function ( subscriber ) { return scheduler . schedule ( dispatch$1 , 0 , { error : error , subscriber : subscriber } ) ; } ) ; } }
Creates an Observable that emits no items to the Observer and immediately
 emits an error notification.
Creates an Observable that emits no items to the Observer and immediately emits an error notification .