Created
April 15, 2019 13:59
-
-
Save MarioBlazek/fdf5f976379e88d5b658fb3cd0f8da23 to your computer and use it in GitHub Desktop.
Simple PHP throwable catch
This file contains hidden or 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 { | |
// your code | |
} catch (Throwable $e) { | |
echo 'Very nice way to catch Exception and Error exceptions'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment