Skip to content

Conversation

@rianjs
Copy link
Contributor

@rianjs rianjs commented Jan 29, 2026

Summary

  • Remove unnecessary error variable re-exports (ErrNotFound, ErrUnauthorized, etc.) from jtk's API package
  • Remove wrapper functions (IsNotFound, IsUnauthorized, IsForbidden)
  • Keep tool-specific errors: ErrIssueKeyRequired, ErrProjectKeyRequired
  • Update tests to use sharederrors directly

Callers can now import the shared errors package directly for clearer dependency chains.

Test plan

  • Run make test - all tests pass

Fixes #22

🤖 Generated with Claude Code

Remove unnecessary error variable re-exports and helper functions from
jtk's API package. Callers now use the shared errors package directly.

- Remove ErrNotFound, ErrUnauthorized, ErrForbidden, ErrBadRequest,
  ErrRateLimited, ErrServerError re-exports
- Remove IsNotFound, IsUnauthorized, IsForbidden wrapper functions
- Keep tool-specific errors: ErrIssueKeyRequired, ErrProjectKeyRequired
- Update tests to use sharederrors directly

Fixes #22

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rianjs rianjs merged commit 0e65bb2 into main Jan 29, 2026
7 checks passed
@rianjs rianjs deleted the refactor/22-remove-error-reexports branch January 29, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: remove error re-exports in jtk

2 participants