2017 © Pedro Peláez
 

library goma-error-handling

GomaErrorHandling provides error-handling methods as well as Exception-Types and codes.

image

goma/goma-error-handling

GomaErrorHandling provides error-handling methods as well as Exception-Types and codes.

  • Thursday, August 31, 2017
  • by daniel.gruber
  • Repository
  • 1 Watchers
  • 0 Stars
  • 656 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

Goma Error Handling

GomaErrorHandler adds a basic Erorr+Exception-Handler for Goma Installations. In addition it provides the GomaException base-class., (*1)

Ignorable and developer-presentable exceptions

  • Ignorable exceptions are exceptions, which are not leading to a crash of the system, default: false
  • Developer-presentable exceptions are exceptions which are printed while in Dev-Mode even if they are ignorable.

Customisation

To customise exception-handling there are two ways: * Change the template for errors by adding a file /templates/phperror.html * Add custom exception-handler by adding a class implementing ExceptionHandler and register it via ExceptionManager::registerExceptionHandler($className, $prepend = false) * handleException:true|null Used to custom exception handling. return true if other error-handling should be stopped * isIgnorableException: boolean|null * isDeveloperPresentableException: boolean|null, (*2)

The Versions

31/08 2017

dev-master

9999999-dev

GomaErrorHandling provides error-handling methods as well as Exception-Types and codes.

  Sources   Download

LGPL-3.0

The Requires

 

by Goma Team