Open jbmusso opened 9 years ago
Consider passing custom/explicit error types to the callback when errors occur.
I can think of these errors right now:
NetworkError
ServerError
TimeoutError
ScriptError
There could be more (or less) errors. Maybe ConnectionError and ClientError. Thoughts welcomed!
ConnectionError
ClientError
Consider passing custom/explicit error types to the callback when errors occur.
I can think of these errors right now:
NetworkError
Ex: no internet connection, should be easy to catch at the http module levelServerError
Ex: Rexster returns with a 500 error for some reasons (the HTTP code should be explicitely returned as well).TimeoutError
Ex: connected, but script timed out for various reasons (connection timeout? script timeout?)ScriptError
Ex: exception thrown by Rexster when executing the script.There could be more (or less) errors. Maybe
ConnectionError
andClientError
. Thoughts welcomed!