import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable()
export class BaseService {

    constructor(protected http: HttpClient) { }

    protected catchHandler = (parameter: HttpErrorResponse): HttpErrorResponse => parameter;
}

import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable()
export class BaseService {

    constructor(public http: HttpClient) { }

    public catchHandler = (parameter: HttpErrorResponse): HttpErrorResponse => parameter;
}

--- 
+++ 
@@ -4,7 +4,7 @@
 @Injectable()
 export class BaseService {
 
-    constructor(public http: HttpClient) { }
+    constructor(protected http: HttpClient) { }
 
-    public catchHandler = (parameter: HttpErrorResponse): HttpErrorResponse => parameter;
+    protected catchHandler = (parameter: HttpErrorResponse): HttpErrorResponse => parameter;
 }
Set BaseService's functions to 'protected'

