goma / goma-error-handling
GomaErrorHandling provides error-handling methods as well as Exception-Types and codes.
Installs: 1 837
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.0
- goma/goma-env: dev-master
This package is auto-updated.
Last update: 2025-06-16 00:57:48 UTC
README
GomaErrorHandler adds a basic Erorr+Exception-Handler for Goma Installations. In addition it provides the GomaException base-class.
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 viaExceptionManager::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