public isGoneAwayException ( Exception $exception ) : boolean | ||
$exception | Exception | |
return | boolean |
public function isGoneAwayException(\Exception $exception)
{
$message = $exception->getMessage();
foreach ($this->goneAwayExceptions as $goneAwayException) {
if (stripos($message, $goneAwayException) !== false) {
return true;
}
}
return false;
}