DocumentValidationExceptionInterface
Magento\Sales\Api\Exception\DocumentValidationExceptionInterface
What it does
This is a marker interface used to identify exceptions that occur during sales document validation in Magento 2.
Developers should implement this interface when creating custom exceptions for validating sales documents like orders, invoices, shipments, or credit memos.
It helps distinguish validation errors from other exception types in the sales module's exception handling flow.