Răsfoiți Sursa

Add V1ConnectionError

Alasdair Smith 8 ani în urmă
părinte
comite
8492373a14
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      services/web/app/coffee/Features/Errors/Errors.coffee

+ 8 - 0
services/web/app/coffee/Features/Errors/Errors.coffee

@@ -61,6 +61,13 @@ ProjectHistoryDisabledError = (message) ->
 	return error
 	return error
 ProjectHistoryDisabledError.prototype.__proto___ = Error.prototype
 ProjectHistoryDisabledError.prototype.__proto___ = Error.prototype
 
 
+V1ConnectionError = (message) ->
+	error = new Error(message)
+	error.name = "V1ConnectionError"
+	error.__proto__ = V1ConnectionError.prototype
+	return error
+V1ConnectionError.prototype.__proto___ = Error.prototype
+
 module.exports = Errors =
 module.exports = Errors =
 	NotFoundError: NotFoundError
 	NotFoundError: NotFoundError
 	ServiceNotConfiguredError: ServiceNotConfiguredError
 	ServiceNotConfiguredError: ServiceNotConfiguredError
@@ -71,3 +78,4 @@ module.exports = Errors =
 	UnsupportedExportRecordsError: UnsupportedExportRecordsError
 	UnsupportedExportRecordsError: UnsupportedExportRecordsError
 	V1HistoryNotSyncedError: V1HistoryNotSyncedError
 	V1HistoryNotSyncedError: V1HistoryNotSyncedError
 	ProjectHistoryDisabledError: ProjectHistoryDisabledError
 	ProjectHistoryDisabledError: ProjectHistoryDisabledError
+	V1ConnectionError: V1ConnectionError