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

        return false;
    }