marko / errors-simple
Simple error handling and display for the Marko framework
0.0.1
2026-03-25 17:53 UTC
Requires
- php: >=8.5
- marko/core: 0.0.1
- marko/errors: 0.0.1
Requires (Dev)
- pestphp/pest: ^4.0
This package is auto-updated.
Last update: 2026-03-25 21:07:19 UTC
README
The default error handler --- catches exceptions and displays them with full context and fix suggestions.
Installation
composer require marko/errors-simple
Quick Example
use Marko\Core\Exceptions\MarkoException; // Throw rich exceptions --- the handler displays context and fix suggestions automatically throw new MarkoException( message: 'Configuration invalid', context: 'Loading payment gateway settings', suggestion: 'Check that API_KEY is set in your .env file', );
Documentation
Full usage, API reference, and examples: marko/errors-simple