*/
import {
+ HttpErrorResponse,
HttpEvent,
HttpHandler,
HttpInterceptor,
HttpResponse,
} from "@angular/common/http";
import { Injectable, Injector } from "@angular/core";
-import { Observable, of } from "rxjs";
+import { Observable, of, throwError } from "rxjs";
import * as policyinstance1 from "./mock/policy-instance-1.json";
import * as noTypePolicies from "./mock/no-type-policies.json";
import * as type0Policies from "./mock/type0-policies.json";
}
}
- if (result) {
+ if (result) {
console.log(
"Mock answering http call :" + request.method + " " + request.url,
request.method === "PUT" ? request.body : null
}
return result;
}
+
}