Model
Error
Magento\Wishlist\Model\Wishlist\Data\Error
What it does
This class serves as a Data Transfer Object (DTO) to represent error information in wishlist operations.
Developers use it to standardize error reporting by encapsulating an error message and error code together, making it easier to handle and communicate errors throughout the wishlist functionality in a consistent format.
Public Methods
- getMessage()
- getCode()