-
Notifications
You must be signed in to change notification settings - Fork 8
error
richardszalay edited this page May 20, 2011
·
3 revisions
Creates an observable sequence that immediately raises an error when subscribed to.
static function error(error : Error) : IObservable.<*>
h3. Remarks
The returned sequence does not complete
The returned sequence raises an error immediately after subscription
─x
IObservable.<*>
Observable.error(new Error("Something went wrong!"))
.subscribe(
null,
null,
function(e:Error):void { trace(e.message); }
);
// Trace output is:
// Something went wrong!