Log in
Interface

CouldNotInvoiceExceptionInterface

Magento\Sales\Api\Exception\CouldNotInvoiceExceptionInterface

What it does

This is a marker interface used to identify exceptions that occur when an invoice cannot be created for an order in Magento 2.

Developers should throw exceptions implementing this interface when invoice creation fails due to validation errors, insufficient data, or business logic constraints.

It allows for consistent exception handling across the Sales module's invoicing operations.