@senx/warpview
Version:
WarpView Elements
17 lines • 897 B
TypeScript
import { HttpErrorResponse } from '@angular/common/http';
import { Observable } from 'rxjs/internal/Observable';
import * as i0 from "@angular/core";
/** Type of the handleError function returned by HttpErrorHandler.createHandleError */
export declare type HandleError = (operation?: string) => (error: HttpErrorResponse) => Observable<string>;
/** Handles HttpClient errors */
export declare class HttpErrorHandler {
private LOG;
/**
*/
constructor();
createHandleError: (serviceName?: string) => (operation?: string) => (error: HttpErrorResponse) => Observable<string>;
handleError(serviceName?: string, operation?: string): (error: HttpErrorResponse) => Observable<string>;
static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorHandler, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorHandler>;
}
//# sourceMappingURL=http-error-handler.service.d.ts.map