Download the PHP package mpyw/exceper without Composer
On this page you can find all versions of the php package mpyw/exceper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor mpyw
Package exceper
Short Description Provides temporary error handler automatically using set_error_handler() and restore_error_handler().
License MIT
Package exceper
Short Description Provides temporary error handler automatically using set_error_handler() and restore_error_handler().
License MIT
Please rate this library. Is it a good library?
Informations about the package exceper
Exceper

Provides temporary error handler automatically using set_error_handler() and restore_error_handler().
| PHP | :question: | Feature Restriction |
|---|---|---|
| 5.3.2~ | :smile: | Supported |
| ~5.3.1 | :boom: | Incompatible |
Installing
Quick Example
API
Mpyw\Exceper\Convert::to()
Mpyw\Exceper\Convert::to{$class}()
Capture errors to convert into an instance of the specified class.
- Error handlers are automatically restored.
->getFile()and->getLine()returns correct locations likeErrorExceptiondoes.
Arguments
(string)$class
Conversion target class name which is an instance of\Exceptionor\Throwable. Please note that case-sensitivity of class name depends on the implementation of your autoloaders, which can cause an unexpected behavior if the target class is not loaded.(int)$code
Error code passed to the constructor as the second argument. Default to0.(callable)$callback
Callback function to be executed. This parameter SHOULD be used as\Closurebecause arguments cannot be specified.(int)$types
Bit mask of target error severities.
Return Value
(mixed)
Propagates upcoming value from $callback().
Exception
Converted errors.
Mpyw\Exceper\Convert::silent()
Capture errors but never throw anything.
Arguments
(callable)$callback
Callback function to be executed. This parameter SHOULD be a\Closurebecause arguments cannot be specified.(int)$types
Bit mask of target error severities.(bool)$captureExceptions
Capture exceptions that were directly thrown; not originated inset_error_handler().
Return Value
(mixed)
Propagates upcoming value from $callback(). Returns null if something thrown.
All versions of exceper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
The package mpyw/exceper contains the following files
Loading the files please wait ...