handleApiError()

in src/app/interceptors/api-error/api-error.interceptor.ts [40:49]


  handleApiError(response: HttpErrorResponse) {
    if (!this.router.url.startsWith('/error')) {
      this.router.navigate(['/error'], {
        queryParams: { last: this.router.url },
        state: this.parseErrorResponse(response.error),
      });
    }

    return throwError(() => response);
  }