20 lines
509 B
PHP
20 lines
509 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Customer\Exceptions;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* Thrown by Modules\Core\Customer\Services\CustomerAccountService when an
|
|
* order id doesn't belong to the customer making the request (or isn't
|
|
* placed yet) — never a plain 404/ModelNotFoundException, so a
|
|
* storefront can't probe for another customer's order ids.
|
|
*/
|
|
class OrderNotFoundException extends RuntimeException
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('Order not found.');
|
|
}
|
|
}
|