Home

Awesome

Exception

Build Status Coverage Status Latest Stable Version Total Downloads

Adds functionality to the standard Exception class.

Usage

use Phine\Exception\Exception;

$exception = Exception::createUsingFormat(
    'This is my %s message.',
    'formatted',
    $previousException
);

echo $undefined;

$exception = Exception::createUsingLastError();

Requirement

Installation

Via Composer:

$ composer require "phine/exception=~1.0"

Documentation

You can find the documentation in the docs/ directory.

License

This library is available under the MIT license.