debian-mirror-gitlab/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js
2019-07-31 17:26:46 +00:00

13 lines
396 B
JavaScript

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;