Created
October 9, 2012 23:19
-
-
Save richo/3862092 to your computer and use it in GitHub Desktop.
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 | |
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