Skip to content

Instantly share code, notes, and snippets.

@richo
Created October 9, 2012 23:19
Show Gist options
  • Save richo/3862092 to your computer and use it in GitHub Desktop.
Save richo/3862092 to your computer and use it in GitHub Desktop.
<?PHP
function break_everything()
{
try {
explodinate();
}
catch (Exception $e)
{
$msg = $e->getMessage() . "\nConnecting to ";
$exc = new Exception($msg, $e->getCode(), $e);
throw($exc);
}
}
function explodinate()
{
throw new Exception("Lol everything's broken");
}
break_everything();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment