Interface
ErrorInterface
Magento\Quote\Api\ErrorInterface
What it does
This interface defines the contract for error objects in Magento 2's Quote module.
Developers use this when handling errors related to shopping cart operations, allowing them to retrieve error codes, messages, and identify which cart item caused the issue through its position.
It's particularly useful when validating cart items or processing quote operations that may fail.
Public Methods
- getCode()
- getCartItemPosition()
- getMessage()