Quiz: Handling Errors and Application Debugging
Test your understanding of handling errors and debugging an Angular application.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
Suppose we want to catch an error in an HTTP request. Which is the correct approach for it?
A.
catchError((error: HttpErrorResponse) => {
console.error(error);
return throwError(() => error);
})
B.
catchError((HttpErrorResponse: error) => {
console(error);
return throwError(() => error);
})
C.
catchError((HttpErrorResponse:error) => {
console.error(error);
return error;
})
D.
catchError((error: HttpErrorResponse) => {
console.error(error);
return throwError();
})
1 / 5
...