2017 © Pedro Peláez
 

library error-exception

The idea of this package is to replace most of the terminating runtime errors with the recoverable exceptions.

image

jakubpas/error-exception

The idea of this package is to replace most of the terminating runtime errors with the recoverable exceptions.

  • Friday, August 7, 2015
  • by jakubpas
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 38 % Grown

The README.md

Synopsis

PHP 7 will allow to use of exceptions in the engine and will replace the existing fatal or recoverable fatal errors with exceptions. Meanwhile in older PHP versions the E_USER_WARNING, E_USER_NOTICE, and any other non-terminating error codes, are useless and act like E_USER_ERROR that will terminate runtime unless ERROR_HANDLER is not combined with ErrorException to catch the error. This library introduces sets of exceptions which handle most of the errors like: CompileError, CompileWarning, CoreError, CoreWarning, Deprecated, Handler.php, Notice, Parse, RecoverableError, Strict, UserDeprecated, UserError, UserNotice, UserWarning, Warning etc., (*1)

Code Example

To turn on ErrorExceptions handling use:, (*2)

<?php
use JakubPas\Exception\Handler;

Handler::set();

Motivation

The idea of this package is to replace most of the terminating runtime errors with the recoverable exceptions., (*3)

Installation

composer require jakubpas/error-exception, (*4)

API Reference

The API Reference is yet to be added., (*5)

Tests

To run the tests:, (*6)

cd test
../vendor/bin/phpunit 

Contributors

Jakub Pas 2015, (*7)

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version., (*8)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*9)

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/., (*10)

The Versions

07/08 2015

dev-master

9999999-dev http://jakubpas.net

The idea of this package is to replace most of the terminating runtime errors with the recoverable exceptions.

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jakub Pas

php exceptions set_error_handler

07/08 2015

1.0.1

1.0.1.0 http://jakubpas.net

The idea of this package is to replace most of the terminating runtime errors with the recoverable exceptions.

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jakub Pas

php exceptions set_error_handler

07/08 2015

1.01

1.01.0.0 http://jakubpas.net

The idea of this package is to replace most of the terminating runtime errors with the recoverable exceptions.

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jakub Pas

php exceptions set_error_handler

07/08 2015

1.0.0

1.0.0.0 http://jakubpas.net

GAPI is an updated version of Google Analytics PHP Interface

  Sources   Download

GPL

The Requires

  • php >=5.4.0

 

The Development Requires

by Jakub Pas

php exceptions set_error_handler