I'm using the UrbanAirship library and importing it into my php script and then using it like so:
use UrbanAirship\Push as P;
// Down inside some method...
try {
$dev = P\deviceToken('....');
} catch (InvalidArgumentException $e) {
continue;
}
If I look at the deviceToken method I see them throwing the InvalidArgumentException on bad input. However, when this happens, my script just aborts with the exception, instead of catching it and moving on.
Is there something special I have to do to catch this exception?