功能上与此等效的东西
//someObservable is an observable from another part of my application which produces Command objects
//can also have a ConnectionException
IObservable<Command> someObservable;
Subject<Command> sub = new Subject<Command>();
someObservable.Subscribe(c => { }, x =>
{
sub.OnError(x);
});
这将允许我对异常有一个可观察的,以便我可以在其他地方处理它们