我正在使用RxJava将应用程序重构为响应式范例。我正在逐步进行,所以我需要使用toBlocking()在某些情况下,暂时为了尊重接口(interface)。使用时如何处理错误toBlocking()?之前,我有这样的事情:publicListgetEmployees(){try{returnrepository.getEmployees();}catch(Exceptione){thrownewMyCustomException();}}现在,存储库有一个react接口(interface)(返回Observable>),所以我这样做:publicListgetEmployees()