@igo2/core
Version:
15 lines (14 loc) • 683 B
TypeScript
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { MessageService } from '@igo2/core/message';
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class ErrorInterceptor implements HttpInterceptor {
private messageService;
constructor(messageService: MessageService);
intercept(originalReq: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
private handleError;
private handleCaughtError;
private handleUncaughtError;
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorInterceptor, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorInterceptor>;
}