summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js
blob: 5917b223d63fdb25c511534963df9d36e3a8e91c (plain)
1
2
3
4
5
6
7
8
9
10
11
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;