dream-aim-deliver / planckster-ui-kit

The React Component Library for Satellite Data Augmentation project's Chat UI
https://dream-aim-deliver.github.io/planckster-ui-kit/
MIT License
0 stars 3 forks source link

General: handle error responses in the components #9

Open alebg opened 6 months ago

alebg commented 6 months ago

Kernel Planckster or Websat Planckster give back responses that are either successful (True, etc.) or not successful (False, error). The components need to be aware of this and render the error cases correctly, without crashing or breaking. All error cases will contain: an error code, an error message, an error type. So you can assume the component can have access to these parameters.

So for all functionalities, please make sure of this. In particular: