phine/exception

This package is abandoned and no longer maintained. No replacement package was suggested.

A PHP library for improving the use of exceptions.

Maintainers

👁 kherge

Package info

github.com/kherge-archive/lib-exception

Homepage

Issues

pkg:composer/phine/exception

Statistics

Installs: 777 306

Dependents: 11

Suggesters: 0

Stars: 11

1.0.0 2013-08-27 17:43 UTC

Requires

  • php: >=5.3.3

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 150c6b6090b2ebc53c60e87cb20c7f1287b7b68a

exception

This package is not auto-updated.

Last update: 2021-12-07 01:32:09 UTC


README

👁 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.