Skip to content

About

[READ-ONLY] Simple error handling and display for the Marko framework. Issues and PRs at https://github.com/marko-php/marko

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/errors-simple

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

About

[READ-ONLY] Simple error handling and display for the Marko framework. Issues and PRs at https://github.com/marko-php/marko

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages