php-tenant/docs
Claude 2601392b8d
refactor: create EntitlementException hierarchy with subtypes
Create exception subclasses for fine-grained error handling:
- LimitExceededException: feature usage limit exceeded
- PackageNotFoundException: package code not found during provisioning
- FeatureNotFoundException: feature code not found during checks
- PackageSuspendedException: workspace packages suspended

Update EntitlementService:
- Add canOrFail() and canForNamespaceOrFail() throwing variants
- Replace firstOrFail() with explicit PackageNotFoundException in provisioning
- Import new exception types, remove unused ModelNotFoundException

Update docs/entitlements.md with Exception Hierarchy section, API reference
entries for new methods, and updated Best Practices examples.

Fixes #19

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:30:48 +00:00
..
architecture.md security: encrypt 2FA secrets and hash invitation tokens 2026-01-29 12:20:53 +00:00
entitlements.md refactor: create EntitlementException hierarchy with subtypes 2026-03-24 13:30:48 +00:00
security.md security: encrypt 2FA secrets and hash invitation tokens 2026-01-29 12:20:53 +00:00
teams-permissions.md security: encrypt 2FA secrets and hash invitation tokens 2026-01-29 12:20:53 +00:00