Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async errorHandler(error: any) {
return Promise.reject(
new ErrorHTTPResponse(
`Statistics Service error: HTTP ${
error.status
}, ${error.statusText || error.cause || ""}` +
`\n${error.action || ""}`,
error
)
);
}