Commit 3c3fe67
authored
feat: Introduce StacError and StacErrorWidget for enhanced error handling (#364)
* chore: Remove unuesd StacOutlineInputBorder class from the framework UI package.
* feat: Introduce StacError and StacErrorWidget for enhanced error handling
- Add StacError class to encapsulate details about parsing and runtime errors, including type, original JSON, and stack trace.
- Implement StacErrorWidget to display structured error information, providing context and troubleshooting tips for developers.
- Update StacService to utilize StacError for error reporting and display custom error widgets when parsing fails.
- Enhance error handling in JSON parsing and action execution with detailed logging and optional error widgets.
* refactor: Update StacError and StacErrorWidget for improved error handling
- Rename error parameter to errorDetails in StacErrorWidget for clarity.
- Update documentation to reflect changes in error handling, including removal of stack trace display in the UI.
- Ensure consistent usage of errorDetails across StacErrorWidget and related components.1 parent 917e724 commit 3c3fe67
File tree
4 files changed
+724
-241
lines changed- packages/stac/lib/src/framework
- ui
4 files changed
+724
-241
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
19 | 39 | | |
20 | 40 | | |
21 | 41 | | |
| |||
34 | 54 | | |
35 | 55 | | |
36 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
37 | 60 | | |
38 | 61 | | |
39 | 62 | | |
40 | 63 | | |
41 | 64 | | |
42 | 65 | | |
43 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
44 | 70 | | |
45 | 71 | | |
46 | 72 | | |
| |||
0 commit comments