2017 © Pedro Peláez
 

library errors

image

php-platform/errors

  • Tuesday, February 13, 2018
  • by Raaghu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,478 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

PHP Platform Error and logging management

This package provides uniform APIs for Error handling and logging, (*1)

Build Status, (*2)

Introduction

This Package mainly solves 3 problems - Provides Exception types for all purposes, well categorized and with unique codes - Common way to log all Exceptions and Errors - Handles PHP System Errors and converts them into Exceptions, (*3)

Exception Types

Following Exception types are available for Application developers to use. - PlatformException abstract Parent of all exceptions , derived from Exception, all logging mechanism implemented here, (*4)

  • PersistenceException abstract Parent of all persistant exceptions, these exceptions to be used by Persistant layer, (*5)

    • BadQueryException
    • DataNotFoundException
    • NoAccessException
    • NoConnectionException
    • NoDuplicateException
    • ReferenceIntegrityViolationException
  • ApplicationException abstract Parent of all application exceptions, these exceptions to be used by Application/Business Layer, (*6)

    • BadInputException
    • Debug
    • NoAccessException
    • ProgrammingError
  • HttpException abstract Parent of all Http exceptions, these exceptions to be used by View or Web Service Layers, (*7)

    • _1XX All exceptions for Informational Http Codes
    • _2XX All exceptions for Success Http codes
    • _3XX All exceptions for Redirectional Http codes
    • _4XX All exceptions for Client Error Http codes
    • _5XX All exceptions for Server Error Http codes
  • SystemException abstract Parent of all System Exceptions generated from handling PHP System Errors, (*8)

    • SystemError For all Errors this Exception is created and thrown from ErrorHandler
    • SystemWarning For all Warnings, This exception is not thrown by the ErrorHandler , instead this is created for the purpose of logging

Configuration

Configurations available for this Package, (*9)

This Configuration is based on PHPPlatform/config, (*10)

``` Javascript { "logs":{ // log file paths for each category of exceptions "Persistence":null, "Application":null, "Http":null, "System":null }, "traces":{ // trace file paths for each category of exceptions "Persistence":null, "Application":null, "Http":null, "System":null } }, (*11)


To enable Error Handling , call error handling function as below ``` PHP PhpPlatform\Errors\ErrorHandler::handleError();

The Versions

13/02 2018

v0.1.x-dev

0.1.9999999.9999999-dev https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform

13/02 2018

v0.1.5

0.1.5.0 https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform

05/02 2018

v0.1.4

0.1.4.0 https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform

06/02 2017

dev-master

9999999-dev https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform

06/02 2017

v0.1.3

0.1.3.0 https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform

12/01 2017

v0.1.2

0.1.2.0 https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform

09/01 2017

v0.1.1

0.1.1.0 https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform

06/01 2017

v0.1.0

0.1.0.0 https://github.com/PHPPlatform/errors

  Sources   Download

The Requires

 

The Development Requires

logging errors exception php-platform