一些功能等同於這個是否有RX擴展來創建可觀察到的從另一個觀察到的,只有捕獲異常
//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);
});
這將讓我有一個觀察的只是例外,這樣我可以在其他地方處理它們