finos / perspective

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.

Home Page:https://perspective.finos.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catching error messages to show meaningful explanation of failures

kryaksy opened this issue · comments

Support Question

I've encountered an issue where various CSV conversion errors are being logged to the console, which makes it challenging to capture and display meaningful messages to the user. These errors seem to abort the update process unexpectedly.

Attached is a screenshot illustrating the errors:
Screenshot 2023-12-20 at 14 20 56 copy

I am looking for a way to properly capture these errors so that I can provide a meaningful and user-friendly response instead of these raw messages. The current behavior is not conducive to a good user experience, as the console logs are not visible to the end-users.

Could you advise on best practices for capturing these errors within the code?

Ideally, I would like to intercept these errors before they hit the console, and then log them or display a custom error message to the user. Any pointers or examples would be greatly appreciated.

I don't understand - these aren't user errors, they are errors in your usage of the API (sending invalid data to update()). What is the use case for reporting these?