debian-mirror-gitlab/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js

14 lines
396 B
JavaScript
Raw Normal View History

2019-07-31 22:56:46 +05:30
import { __ } from '~/locale';
2017-08-17 22:00:37 +05:30
class RecentSearchesServiceError {
constructor(message) {
this.name = 'RecentSearchesServiceError';
2019-07-31 22:56:46 +05:30
this.message = message || __('Recent Searches Service is unavailable');
2017-08-17 22:00:37 +05:30
}
}
// Can't use `extends` for builtin prototypes and get true inheritance yet
RecentSearchesServiceError.prototype = Error.prototype;
export default RecentSearchesServiceError;