summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/filtered_search/services/recent_searches_service_error.js')
-rw-r--r--app/assets/javascripts/filtered_search/services/recent_searches_service_error.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js b/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js
new file mode 100644
index 00000000000..5917b223d63
--- /dev/null
+++ b/app/assets/javascripts/filtered_search/services/recent_searches_service_error.js
@@ -0,0 +1,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;