fetchClientFinanceDetails(id: string, updateType: OnvioClientUpdateType): Observable <ClientFinance> {
return this.getClientContactDetailsById(id, updateType).pipe(mergeMap((data: any) => {
const finance = this.mapDataToClientFinance(data);
return of(finance);
})).pipe(catchError(ExceptionHandler.handleError));
}
I am invoking the above function from a component and it is defined in my service. However, I am facing an issue where the error returned by catchError function gets overridden by the Observable ClientFinance. How can I handle this situation?