src/Handler/ContinueOnExceptionHandler.php
public function handle(Message $message)
    {
        // Beware of infinite loop!
        try {
            $this->handler->handle($message);
        } catch (\Exception $e) {
            $this->logger->error($e);

            if ($e instanceof ConsumerException) {
                return false;
            }
        }

        return self::CONTINUE_CONSUMING;
    }
public function handle(Message $message)
    {
        // Beware of infinite loop!
        try {
            $this->handler->handle($message);
        } catch (\Exception $e) {
            $this->logger->error($e);

            if ($e instanceof ConsumerException) {
                return false;
            }
        }

        return self::CONTINUE_CONSUMING;
    }
Handle a message.

@param Message $message

@return bool