https://github.com/venndev/verrorhandler
- Handling exceptions or errors coming from the PocketMine server or regular php applications!
https://github.com/venndev/verrorhandler
Last synced: 4 months ago
JSON representation
- Handling exceptions or errors coming from the PocketMine server or regular php applications!
- Host: GitHub
- URL: https://github.com/venndev/verrorhandler
- Owner: VennDev
- License: apache-2.0
- Created: 2024-08-06T13:00:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T13:23:43.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T10:42:32.764Z (about 1 year ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VErroHandler
- Handling exceptions or errors coming from the PocketMine server or regular php applications!
# Features
- Handle errors and exceptions in your server or php application easily!
- Avoid unexpected exceptions or errors that close the server or application!
# Example
```php
VErrorHandler::init();
VErrorHandler::register(function (string $errorMessage) {
throw new ErrorException($errorMessage); // you can throw new ErrorException or not if you did not want stop server or your application!
});
```