Log in
Model

Error

Magento\Sales\Model\Reorder\Data\Error

What it does

This is a Data Transfer Object (DTO) that represents an error during the reorder process in Magento 2.

Developers use this class to encapsulate error information (message and code) when customers attempt to reorder items from previous orders, allowing for standardized error handling and reporting throughout the reorder workflow.

Public Methods

  • getMessage()
  • getCode()