marko/errors-simple

Simple error handling and display for the Marko framework

Maintainers

Package info

github.com/marko-php/marko-errors-simple

pkg:composer/marko/errors-simple

Statistics

Installs: 6

Dependents: 2

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

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