ccxws
ccxws copied to clipboard
Uniform error handling
With the inclusion of the error
event there is now a mechanism for transmitting errors to the client. There are currently several gaps surrounding error handling.
- Clients do not uniformly send error payloads
- We do not have a clean mechanism for transmitting the underlying cause of the error. For example, if there was a REST request failure it would be nice to know that that was the cause. Or if the error was caused by invalid JSON parsing it would be nice to know that.
- It would be good to uniformly include metadata such as the market and/or the raw data that caused an exception.