-
-
05 Jul 2022 13:18:19 UTC
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (433 / 0 / 0)
- Kwalitee
Bus factor: 1- 34.68% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (23.54KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
John Napiorkowski
Changes for version 0.001008 - 2022-07-05
- Refactored to move most of the content negotiation into the plugin, so we can simplify the views.
- JSON view changed to return its data more like the Text and HTML views
- HTTP Exception object refactored to use a role (which is now preferred for custom exceptions)
- You can now add additional headers in the exception object, and pass headers via the dispatch and detach errors methods.
- using status_code instead of jsut status. This is a break change but needed because I found 'status' was just too generic and was causing namespace conflicts.
- improved the docs a bit.
Modules
Automatically return an error pageStandard error responses with content negotiationStandard HTTP Errors Responses in HTMLStandard HTTP Errors Responses in JSONStandard HTTP Errors Responses in Plain Text.Standard error handling with content negotiation and utilitiesGlobal Content Negotiation objectAn exception roleHTTP error message data in various languagesA basic way to throw exceptionsExamples
Other files
Module Install Instructions
To install CatalystX::Errors, copy and paste the appropriate command in to your terminal.
cpanm CatalystX::Errors
perl -MCPAN -e shell install CatalystX::Errors
For more information on module installation, please visit the detailed CPAN module installation guide.