Welcome to mirror list, hosted at ThFree Co, Russian Federation.

recent_searches_service_error.js « services « filtered_search « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 011b37e218d8e4b3b9aa1f144bef31fd6f2d8e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { __ } from '~/locale';

class RecentSearchesServiceError {
  constructor(message) {
    this.name = 'RecentSearchesServiceError';
    this.message = message || __('Recent Searches Service is unavailable');
  }
}

// Can't use `extends` for builtin prototypes and get true inheritance yet
RecentSearchesServiceError.prototype = Error.prototype;

export default RecentSearchesServiceError;