feat: add domain exception classes and wire into throw sites#75
Merged
feat: add domain exception classes and wire into throw sites#75
Conversation
Expand User-Guide/Helpers.md section 2 with full API documentation for all six helper classes: ArrayToXml, Cipher, Hash, UUID, JWT, EWT. JWT and EWT were previously undocumented. Existing stubs for ArrayToXml, Cipher, Hash, and UUID are replaced with complete method signatures, parameter descriptions, usage examples, and guidance on when to use each class (e.g. JWT vs EWT, UUID v4 vs v7).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CacheException,ConfigException,DatabaseException,MiddlewareException— all extendingSpinExceptionCacheExceptionintosrc/Cache/Adapters/Apcu.phpandRedis.php(replaces\RuntimeException)ConfigExceptionintosrc/Core/Config.php(replacesSpinException, adds$previouschaining on JSON parse errors)DatabaseExceptionintosrc/Database/PdoConnection.php(rawQuery/rawExec) andsrc/Core/ConnectionManager.php(password-sanitization logic preserved — no$previouson sanitized path)tests/Exceptions/) — 7 per exception classPdoConnectionInterface@throwsdocblockschangelog.md,composer.json,package.json,VERSIONto 0.0.40Exception hierarchy
Test plan
./vendor/bin/phpunit tests/Exceptions/— 28 tests, all PASS./vendor/bin/phpunit tests/Cache/— no regressions (APCu/Redis skipped if unavailable)./vendor/bin/phpunit tests/Database/— 2 new exception-type tests PASS with live MySQL, SKIP without./vendor/bin/phpunit— no new failures