Files
0616d2622d Re-export RestError and isRestError in non-management packages (#39007)
### Packages impacted by this PR

All non-management Azure SDK client packages (83 packages).

### Issues associated with this PR

Many Azure SDK packages did not re-export `RestError` or `isRestError`
from `@azure/core-rest-pipeline`, unlike packages that already did
(`@azure/cosmos`, `@azure/storage-queue`, `@azure/data-tables`,
`@azure/notification-hubs`, etc.). This forces users to add
`@azure/core-rest-pipeline` as a direct dependency for basic error
handling.

### Describe the problem that is addressed by this PR

Adds re-exports of `RestError` and `isRestError` from
`@azure/core-rest-pipeline` to all non-management client SDK packages'
public API surface, consistent with the pattern established in #38098.

```ts
import { RestError, isRestError } from "@azure/keyvault-keys"; // or any other package

try {
  // ...
} catch (e) {
  if (isRestError(e)) {
    console.log(e.statusCode);
  }
}
```

### Changes

- **76 packages**: Added both `RestError` and `isRestError` exports to
`src/index.ts`
- **7 packages** (already had `RestError`, added `isRestError`):
`@azure/ai-projects`, `@azure/cosmos`, `@azure/data-tables`,
`@azure/storage-blob`, `@azure/storage-file-datalake`,
`@azure/storage-file-share`, `@azure/storage-queue`
- All `review/*.api.md` files updated via `dev-tool run extract-api`
- No version bumps needed (all packages already have unreleased versions
higher than published)

### Are there test cases added in this PR?

No. These are pass-through re-exports of symbols already tested in
`@azure/core-rest-pipeline`.

### Checklists
- [x] Added impacted package name to the issue description.

---------

Co-authored-by: Copilot <[email protected]>
2026-06-29 15:42:30 -07:00
..