Log in
Interface

CouldNotShipExceptionInterface

Magento\Sales\Api\Exception\CouldNotShipExceptionInterface

What it does

This interface serves as a marker for exceptions that occur when a shipment cannot be created for an order in Magento 2.

Developers should throw exceptions implementing this interface when shipment creation fails due to business logic constraints, validation errors, or operational issues.

It provides a standardized way to identify and handle shipment-related errors in the Sales module.