Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(error: HttpErrorResponse) => this.logger.error("Error while fetching files", new StarkErrorImpl(error))
);public onNew(): void {
if (typeof this.genericSearchService.createNew !== "undefined") {
this.genericSearchService.createNew();
} else {
throw new StarkErrorImpl(
'AbstractStarkSearchComponent: When StarkGenericSearch component has the "new" button defined, ' +
'the service must have an implementation for "createNew" method.'
);
}
}