21 lines
555 B
PHP
21 lines
555 B
PHP
<?php
|
|
|
|
namespace Modules\Core\Customer\Exceptions;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* Thrown by Modules\Core\Customer\Services\CustomerAccountService when an
|
|
* address id doesn't belong to the customer making the request — never
|
|
* a plain 404/ModelNotFoundException, so a storefront can't probe for
|
|
* another customer's address ids by trying sequential ones and reading
|
|
* the response shape.
|
|
*/
|
|
class AddressNotFoundException extends RuntimeException
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct('Address not found.');
|
|
}
|
|
}
|