jonnybarnes.uk/app/Exceptions
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes 24cb6d61aa
Implement micropub update support with clean exception-based error handling
- Add MicropubUnsupportedModelException for non-note update attempts
- Refactor UpdateHandler to throw exceptions instead of returning JsonResponse objects; extract applySyndication() to DRY up duplicated syndication URL mapping
- Fix MicropubController: InvalidTokenScopeException now returns 401 + insufficient_scope; add catches for ModelNotFoundException (404) and MicropubUnsupportedModelException (500); updates return 200 not 201
- Slim MicropubRequest.normalizeMicropubJson() to branch on action type, keeping update and create fields cleanly separated
- Update tests to match corrected status codes and error keys; remove markTestSkipped() from all update tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 10:15:35 +00:00
..
Handler.php Initial work with Psalm reporting 2023-06-25 14:18:40 +01:00
InternetArchiveException.php Update Laravel Pint 2024-07-13 10:55:19 +01:00
InvalidTokenScopeException.php Refactor of micropub request handling 2025-04-27 16:38:25 +01:00
MicropubHandlerException.php Refactor of micropub request handling 2025-04-27 16:38:25 +01:00
MicropubUnsupportedModelException.php Implement micropub update support with clean exception-based error handling 2026-02-22 10:15:35 +00:00
RemoteContentNotFoundException.php Update Laravel to v12 2025-04-01 21:10:30 +01:00