Model
ProductSalabilityError
Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\ProductSalabilityError
What it does
This class represents an error object that describes why a product cannot be sold in the requested quantity.
Developers use this class when implementing inventory validation logic to return detailed error information including error codes and human-readable messages when a product's salability check fails.
Public Methods
- getCode()
- getMessage()
- getExtensionAttributes()
- setExtensionAttributes()