"how to throw an observable error manually?" Code Answer

5
if (response.success == 0) {
   throw observable.throw(response);  
 } 

edit for rxjs 6:

if (response.success == 0) {
   throw throwerror(response);  
 } 
By clockwiseq on October 5 2022
Only authorized users can answer the Search term. Please sign in first, or register a free account.