8000 GitHub - kherge-archive/lib-exception: A PHP library for improving the use of exceptions.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

kherge-archive/lib-exception

Repository files navigation

Exception

Build Status Coverage Status Latest Stable Version Total Downloads

Adds functionality to the standard Exception class.

  • Create new exceptions based on sprintf() format.
  • Create new exceptions using the last error (error_get_last()).

Usage

use Phine\Exception\Exception;

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

echo $undefined;

$exception = Exception::createUsingLastError();

Requirement

  • PHP >= 5.3.3

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.

About

A PHP library for improving the use of exceptions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0