Charis
df742bdb3b
refactor(studio): rename ResponseError to StudioError ( #52707 )
...
## What
Moves the `ResponseError` class (`types/base.ts`) and the classified
error classes (`types/api-errors.ts`) into
`lib/errors/studio-errors.ts`, and renames `ResponseError` to
`StudioError`.
## Why
Studio's error classification is being expanded to cover errors that
don't come from API responses (thrown network failures, aborted
requests, unexpected client errors). The API-specific name and location
no longer fit. Landing the rename on its own keeps the follow-up PR,
which introduces the classified error model, small and reviewable.
## Notes for reviewers
- Mechanical change, no behavior change. Most of the diff is a one-line
import change per file plus import re-sorting by Prettier.
- Files that only use the type now use `import type { StudioError }`.
- `ResponseError` is no longer re-exported from `@/types`; there are no
compatibility shims at the old paths.
- Unrelated identifiers like `QueryResponseError` and
`parseResponseErrors` are unchanged.
2026-11-03 11:09:30 -05:00
..
2026-10-23 18:51:27 +08:00
2026-10-27 12:42:05 +11:00
2026-10-31 07:44:36 -04:00
2026-11-03 11:09:30 -05:00
2026-10-23 18:51:27 +08:00
2026-11-03 11:09:30 -05:00
2026-09-08 18:26:41 +08:00
2026-07-25 00:00:37 +10:00
2026-09-29 15:28:49 -04:00
2026-10-06 15:56:48 -04:00
2026-09-02 19:02:37 +08:00
2026-03-19 11:43:02 +11:00
2026-04-07 20:34:10 -04:00
2026-09-28 18:21:34 +03:00
2026-10-01 12:04:07 +10:00
2026-10-01 12:04:07 +10:00
2026-04-27 17:42:34 +08:00
2025-10-22 08:57:49 -04:00
2026-10-27 20:50:25 +08:00
2026-10-27 20:50:25 +08:00
2026-10-12 10:26:51 +11:00
2026-10-12 10:26:51 +11:00
2026-10-27 14:47:27 +01:00
2026-10-27 14:47:27 +01:00
2026-10-23 18:51:27 +08:00
2026-10-07 09:43:28 -04:00
2026-07-22 13:57:03 +02:00
2026-04-07 20:34:10 -04:00
2026-05-06 14:52:36 +02:00
2026-05-06 14:52:36 +02:00
2026-03-23 21:20:47 +00:00
2026-11-03 11:09:30 -05:00
2026-11-03 11:09:30 -05:00
2026-10-23 18:51:27 +08:00
2026-08-18 15:33:04 +08:00
2026-10-27 10:48:24 -04:00
2026-10-23 18:51:27 +08:00
2026-05-04 13:08:06 -04:00
2026-08-04 09:02:40 -04:00
2026-08-04 09:02:40 -04:00
2026-10-23 18:51:27 +08:00
2026-06-04 07:41:28 -06:00
2026-10-23 18:51:27 +08:00
2026-08-24 17:23:25 +10:00
2026-10-26 10:51:20 -04:00
2026-11-03 11:09:30 -05:00
2026-10-23 18:51:27 +08:00
2026-10-05 09:37:51 -04:00
2026-10-16 14:18:32 -04:00
2026-04-07 20:34:10 -04:00
2026-09-30 12:59:36 +08:00
2026-11-03 11:09:30 -05:00
2026-10-28 19:23:11 +08:00
2026-10-28 19:23:11 +08:00
2026-10-23 18:51:27 +08:00
2026-08-07 13:40:18 +07:00
2026-08-07 13:40:18 +07:00
2026-05-04 07:08:35 -06:00
2026-10-27 12:42:05 +11:00
2026-10-23 18:51:27 +08:00
2026-04-08 16:54:31 +02:00
2026-04-07 20:34:10 -04:00
2026-10-23 18:51:27 +08:00
2026-09-15 10:07:49 +10:00
2026-06-25 11:08:26 -04:00
2026-07-08 14:52:59 +08:00
2026-07-08 14:52:59 +08:00
2026-03-09 15:25:05 +07:00
2026-03-09 15:25:05 +07:00
2026-07-06 17:38:03 +08:00
2026-07-06 17:38:03 +08:00
2026-08-14 14:56:23 +02:00
2026-03-11 13:55:20 +01:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-05-13 14:57:08 -04:00
2026-09-10 16:45:54 +08:00
2026-04-07 20:34:10 -04:00
2026-10-12 11:28:12 +08:00
2026-11-03 11:09:30 -05:00
2026-09-10 16:45:54 +08:00
2026-09-10 16:45:54 +08:00
2026-04-27 17:42:34 +08:00
2026-10-23 18:51:27 +08:00
2026-06-09 08:25:29 -06:00
2026-06-09 08:25:29 -06:00
2026-04-02 11:09:18 +11:00
2025-10-22 08:57:49 -04:00
2025-10-22 08:57:49 -04:00
2026-05-04 13:08:06 -04:00
2026-08-18 11:27:09 +08:00
2026-07-08 14:52:59 +08:00
2026-07-08 14:52:59 +08:00
2026-10-19 21:00:40 +02:00
2026-07-08 14:52:59 +08:00
2025-10-22 08:57:49 -04:00
2025-10-22 08:57:49 -04:00
2026-11-02 15:42:59 +00:00
2026-11-02 15:42:59 +00:00
2026-10-23 18:51:27 +08:00
2026-01-22 11:17:49 -05:00
2026-10-23 18:51:27 +08:00
2026-09-15 09:38:36 -06:00
2026-10-23 18:51:27 +08:00
2026-10-05 18:36:13 +11:00
2026-09-25 15:38:23 +08:00
2026-09-25 15:38:23 +08:00
2026-06-18 15:34:56 +08:00
2026-10-14 12:56:55 +02:00
2026-10-23 18:51:27 +08:00
2026-05-04 16:21:47 +08:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-04-07 20:34:10 -04:00
2026-04-27 17:42:34 +08:00
2026-05-13 14:57:08 -04:00
2026-07-02 11:47:13 +02:00
2026-07-31 15:37:05 -07:00
2026-10-06 10:11:26 +11:00
2026-09-02 19:02:37 +08:00
2026-10-26 09:45:23 +01:00
2026-03-30 10:58:37 +02:00
2026-05-13 14:57:08 -04:00
2026-09-10 16:45:54 +08:00
2026-04-27 17:42:34 +08:00
2026-10-19 15:25:32 +02:00
2026-10-19 15:25:32 +02:00