Commit 31422bd
committed
Replace local UnsupportedIntegrationError with shared error
Create a new shared UnsupportedIntegrationError in src/platform/errors to
conform to the project error taxonomy. Replace the locally defined error in
sqlIntegrationEnvironmentVariablesProvider.ts with the shared version.
The shared error maintains the same behavior (BaseError with 'unknown'
category) and accepts a message parameter to support both integration type
and auth method error cases. All three throw sites (lines 76-78, 109-111,
and 148-150) now use the shared error with appropriate messages for
consistent telemetry and error handling across the codebase.1 parent 56e9e91 commit 31422bd
File tree
2 files changed
+26
-17
lines changed- src/platform
- errors
- notebooks/deepnote
2 files changed
+26
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 4 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 17 | | |
33 | 18 | | |
34 | 19 | | |
| |||
160 | 145 | | |
161 | 146 | | |
162 | 147 | | |
163 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
164 | 151 | | |
165 | 152 | | |
166 | 153 | | |
| |||
0 commit comments