library exception
A PHP library for improving the use of exceptions.
phine/exception
A PHP library for improving the use of exceptions.
- Thursday, December 12, 2013
- by kherge
- Repository
- 0 Watchers
- 4 Stars
- 328,048 Installations
- PHP
- 11 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 4 % Grown
Exception
, (*1)
Adds functionality to the standard Exception
class., (*2)
- 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
Installation
Via Composer:, (*3)
$ composer require "phine/exception=~1.0"
Documentation
You can find the documentation in the docs/
directory., (*4)
License
This library is available under the MIT license., (*5)