nl-kat-coordination
nl-kat-coordination copied to clipboard
better error handling in octopoes client, and catching of those errors in Rocky
Is your feature request related to a problem? Please describe. We need better error handling in the Rocky Octopoes client. This client should raise (subclasses of) OctopoesErrors when there are issues with the http requests to Octopoes.
Describe the solution you'd like Implement custom OctopoesErrors with various subclasses that can be raised when dealing with octopoes, eg, connection errors, timeouts, invalid input (json parse errors), invalid commands (valid content, invalid question) These errors should then be raised when dealing with these issues, and subsequently we cought in Rocky which should give the user useful information to act on.
Additional context
Related:
https://github.com/minvws/nl-kat-coordination/issues/2213 https://github.com/minvws/nl-kat-coordination/issues/2138 https://github.com/minvws/nl-kat-coordination/issues/2138