I am trying to handle InvalidArgumentException in a custom way. In app/start/global.php I have the following code block after the built in App::error(Exception $exception... block
:
App::error(function(InvalidArgumentException $exception, $code){
// die('last');
$exceptionData['exception'] = $exception;
$exceptionData['code'] = $code;
ExceptionNotificationHandlerController::notify($exceptionData);
});
die()ing, breakpoints, etc all suggest to me that it never goes into that block of code when I throw an InvalidArgumentException. Help?