Skip to content

Instantly share code, notes, and snippets.

@MarioBlazek
Created April 15, 2019 13:59
Show Gist options
  • Save MarioBlazek/fdf5f976379e88d5b658fb3cd0f8da23 to your computer and use it in GitHub Desktop.
Save MarioBlazek/fdf5f976379e88d5b658fb3cd0f8da23 to your computer and use it in GitHub Desktop.
Simple PHP throwable catch
<?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