I have some PHP code that should cause and catch two exceptions:
try{
@$this->connector->connect(); // Suppress the default warning (doesn't effect 'throw')
} catch(BadArgumentException $e) {} // Works, no error, following code executes.
try{
@$this->connector->connect(array('user' => 'Doesn\'t exist', 'pass' => 'invalid'));
} catch(AuthenticationException $e) {} // DOESN'T WORK - Passed to the exception handler.
echo 'Not executed!'; // This isn't executed.
I have tried generalising them to catch(Exception $e)
but get the same problem... no idea why.
Any help?