* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Order\Exception; /** * Exception thrown when constraint is violated in Order subdomain. */ class OrderConstraintException extends OrderException { /** * Used in create order from BO when the customer message is invalid. */ public const INVALID_CUSTOMER_MESSAGE = 1; /** * @var int Is used when invalid (not string) internal note provided */ public const INVALID_INTERNAL_NOTE = 2; /** * Used in add payment from BO when the payment method is invalid. */ public const INVALID_PAYMENT_METHOD = 3; }