protected function shouldCatch(\Exception $e)
    {
        foreach ($this->exceptionClasses as $exceptionClass) {
            if (is_a($e, $exceptionClass, true)) {
                return true;
            }
        }

        return false;
    }
protected function shouldCatch(\Exception $e)
    {
        foreach ($this->exceptionClasses as $exceptionClass) {
            if (is_a($e, $exceptionClass, true)) {
                return true;
            }
        }

        return false;
    }
protected function shouldCatch ( \ Exception $ e ) { foreach ( $ this -> exceptionClasses as $ exceptionClass ) { if ( is_a ( $ e , $ exceptionClass , true ) ) { return true ; } } return false ; }
Returns true if the exception is an instance of the exceptions we are catching.

@param \Exception $e

@return bool
Returns true if the exception is an instance of the exceptions we are catching .