src/Handler/StopOnExceptionHandler.php
public function handle(Message $message)
    {
        try {
            $this->handler->handle($message);
            return self::CONTINUE_CONSUMING;
        } catch (\Exception $e) {
            $this->logger->error($e);
            return self::STOP_CONSUMING;
        }
    }
public function handle(Message $message)
    {
        try {
            $this->handler->handle($message);
            return self::CONTINUE_CONSUMING;
        } catch (\Exception $e) {
            $this->logger->error($e);
            return self::STOP_CONSUMING;
        }
    }
Handle a message.

@param Message $message

@return bool