Zend certified PHP/Magento developer

Magento 2 : GraphQL Exception in Plugin

I’m trying to achieve a specific feature when customer can’t add some combination of products in the cart (the last one have to be refused).

For example, product A, B and C can’t be on the same cart, the last one to be added must be refused and a message must be thrown to the user. The add to cart is used through GraphQL

I’m trying to achieve all of this doing a plugin before on the Magento/Quote/Model/Quote::addProduct, which is working fine (the product does not add), but i don’t have any error message on GraphQL despite the exception thrown.

Is this can be achived through a plugin or should i use an observer (e.g checkout_cart_save_before).

Thanks a lot for your help.