gitlab-org--gitlab-foss/app/assets/javascripts/filtered_search/services/recent_searches_service_err...

12 lines
360 B
JavaScript

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;