Created
October 21, 2019 12:46
-
-
Save tarto-dev/acb3d5f7f781bad796471bd0989e9ee1 to your computer and use it in GitHub Desktop.
Perfect error handler -- PHP Version :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
// Do ur shit here | |
} catch (Exception $e) { | |
header("Location : https://stackoverflow.com/search?q=[php]" . $e->getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment