import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpErrorResponse } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * This service is defined to catch the errors of every Http requests. * @export * @class ErrorHandlerInterceptorService * @implements {HttpInterceptor} */ export declare class ErrorHandlerInterceptor implements HttpInterceptor { intercept(request: HttpRequest, next: HttpHandler): Observable>; /** * HandleError method receives the error response and throws the error for global handler to handle further * @param {HttpErrorResponse} error * @return {error} * @memberof ErrorHandlerInterceptorService */ handleError(error: HttpErrorResponse): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }