99designs / 99designs/http-signatures-php
Exception type heirarchy
- Dominant language
- PHP
- Stars
- 46
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Currently, many error conditions are thrown as `Exception`.
Instead they should be made more specific, all inheriting from a central library-specific base exception.
See https://github.com/99designs/http-signatures-ruby for reference.
Contributor guide
No contributing guide indexed for this repository
Research direction
Review the linked Ruby library for its exception hierarchy. Examine the codebase for where `Exception` is thrown, likely in classes like `Signer` or `Verifier`. Create a base exception class (e.g., `HttpSignaturesException`) and specific subclasses for different error conditions. Update throw statements and ensure existing tests still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend-api-design
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100