Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling #14

Merged
merged 8 commits into from
Aug 3, 2024
Merged

Error handling #14

merged 8 commits into from
Aug 3, 2024

Conversation

otsch
Copy link
Owner

@otsch otsch commented Aug 3, 2024

An error handler can now be added via the config. The error handler class must extend the new AbstractErrorHandler class, implement a method boot() where a user registers one or multiple error handlers. The handlers are automatically called with any uncaught exception or PHP warnings and errors (turned into ErrorExceptions) occuring during a PPQ job execution.

otsch added 8 commits August 3, 2024 12:10
An error handler can now be added via the config. The error handler
class must extend the new `AbstractErrorHandler` class, implement a
method `boot()` where a user registers one or multiple error handlers.
The handlers are automatically called with any uncaught exception or PHP
warnings and errors (turned into `ErrorException`s) occuring during a
PPQ job execution.
unserialize() causes only a notice until PHP 8.2 and a warning from
PHP 8.3 on. Change it to get contents of a missing file to consistently
get a PHP warning.
@otsch otsch merged commit 0dc24ef into main Aug 3, 2024
4 checks passed
@otsch otsch deleted the feature/error-handling branch August 3, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant