2017 © Pedro Peláez
 

library exceptions

An error handler that produces error exceptions when a native error occurs.

image

errors/exceptions

An error handler that produces error exceptions when a native error occurs.

  • Tuesday, July 4, 2017
  • by ezzatron
  • Repository
  • 1 Watchers
  • 5 Stars
  • 9,769 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

No longer maintained

This package is no longer maintained. See [this statement] for more info., (*1)

[this statement]: https://gist.github.com/ezzatron/713a548735febe3d76f8ca831bc895c0, (*2)

The errors/exceptions package

Adding this package as a dependency indicates that the root package is designed to work with exception-based error handling as described in the specification, and will not work correctly with the native errors that PHP produces by default:, (*3)

composer require errors/exceptions

This package installs an exception-based error handler upon installation. It is not necessary to manually install the error handler via [set_error_handler()]., (*4)

Providing an alternate error handler

To use an alternate error handler, simply install the alternate handler and use Composer's provide option:, (*5)

{
    "provide": {
        "errors/exceptions": "0.1.0"
    }
}

The "provided" error handler should still implement the specification., (*6)

Reporting deprecations

In some cases, such as CI builds, it is desirable to report on deprecations. To enable this behavior, set the environment variable PHP_ERROR_EXCEPTION_DEPRECATIONS=1., (*7)

Bypassing the error handler

For testing purposes only, it is possible to bypass the error handler by setting the environment variable PHP_ERROR_EXCEPTIONS=0., (*8)

The Versions

04/07 2017

dev-master

9999999-dev https://github.com/php-errors/exceptions

An error handler that produces error exceptions when a native error occurs.

  Sources   Download

MIT

The Development Requires

errors exception error handler errorexception

04/07 2017

dev-deprecations

dev-deprecations https://github.com/php-errors/exceptions

An error handler that produces error exceptions when a native error occurs.

  Sources   Download

MIT

The Development Requires

errors exception error handler errorexception

04/07 2017

0.2.0

0.2.0.0 https://github.com/php-errors/exceptions

An error handler that produces error exceptions when a native error occurs.

  Sources   Download

MIT

The Development Requires

errors exception error handler errorexception

13/12 2016

0.1.1

0.1.1.0 https://github.com/php-errors/exceptions

An error handler that produces error exceptions when a native error occurs.

  Sources   Download

MIT

The Development Requires

errors exception error handler errorexception

12/12 2016

0.1.0

0.1.0.0 https://github.com/php-errors/exceptions

An error handler that produces error exceptions when a native error occurs.

  Sources   Download

MIT

The Development Requires

errors exception error handler errorexception