1 2 3 4 5 6
export class SearchError extends Error { constructor(message: string) { super(message); this.name = "SearchError"; } }