2019-04-05 -> 2021-08-10
An error message handler for the Light framework. This is a Light framework plugin.
This is part of the universe framework.
Using the planet installer via light-cli
lt install Ling.Light_PrettyError
Using the uni command.
uni import Ling/Light_PrettyError
Or just download it and place it where you want otherwise.
- Light_PrettyError api (generated with DocTools)
- Services
Here is the content of the service configuration file:
pretty_error:
instance: Ling\Light_PrettyError\Service\LightPrettyErrorService
Basically, those services will improve the visual appearance for:
- the error debug page (unknown error with Light debug mode=true)
- the 404 error page (error of type 404)
The initializer service is provided by the Light_Initializer planet, which this planet depends on.
The PrettyErrorInitializer class will automatically register error handlers for the following error types:
- 404
And will basically provide aesthetically pleasing templates for those errors.
-
1.5.17 -- 2021-08-10
- update service, now has explicit dependency to Light_ZephyrTemplate
-
1.5.16 -- 2021-06-03
- adapt api to work with Light_PlanetInstaller:2.0.4
-
1.5.15 -- 2021-05-31
- Removing trailing plus in lpi-deps file (to work with Light_PlanetInstaller:2.0.0 api
-
1.5.14 -- 2021-05-31
- update api to work with Light_PlanetInstaller 2.0.0
-
1.5.13 -- 2021-05-03
- Update dependencies to Ling.Light_Events (pushed by SubscribersUtil)
-
1.5.12 -- 2021-05-03
- Update dependencies to Ling.Light_Events (pushed by SubscribersUtil)
-
1.5.11 -- 2021-05-03
- Update dependencies to Ling.Light_Events (pushed by SubscribersUtil)
-
1.5.10 -- 2021-03-22
- adapt api to work with Ling.Light_Events:1.10.0
-
1.5.9 -- 2021-03-19
- fix open events not in the "events" directory
-
1.5.8 -- 2021-03-18
- switch to Ling.Light_Events' open registration system
-
1.5.7 -- 2021-03-15
- update planet to adapt Ling.Light:0.70.0
-
1.5.6 -- 2021-03-09
- rename templates dir to Ling.Light_PrettyError
-
1.5.5 -- 2021-03-05
- update README.md, add install alternative
-
1.5.4 -- 2021-02-22
- adapt to new light universe assets organization
-
1.5.3 -- 2020-12-08
- Fix lpi-deps not using natsort
-
1.5.2 -- 2020-12-04
- Add lpi-deps.byml file
-
1.5.1 -- 2019-12-12
- fix LightPrettyErrorService->onLightExceptionCaught calling non-existing service template
-
1.5.0 -- 2019-11-11
- renamed service to pretty_error
- move PrettyErrorInitializer to LightPrettyErrorService, to accommodate new Light exception handling system
-
1.4.2 -- 2019-09-10
- update service instantiation to accommodate the new initializer interface
-
1.4.1 -- 2019-07-18
- update docTools documentation, add links to source code for classes and methods
-
1.4.0 -- 2019-07-17
- update PrettyErrorInitializer class to adapt the new LightInitializerInterface
-
1.3.0 -- 2019-07-17
- update PrettyErrorInitializer class to adapt the new LightInitializerInterface
-
1.2.0 -- 2019-04-09
- add PrettyErrorInitializer class
-
1.1.0 -- 2019-04-08
- change PrettyDebugPageUtil->print method to renderPage
-
1.0.0 -- 2019-04-05
- initial commit