summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js
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;