<?php

declare(strict_types=1);

namespace App\Service;

/**
 * Thrown by DeviceService::linkToUser when the MAC is already bound to a
 * different user and the caller hasn't passed allowClaim=true. The setup
 * controller catches this and re-renders with the "Claim this frame"
 * checkbox visible — a friend who reset the device for a new owner has to
 * tick the box to acknowledge the prior owner's data will be wiped.
 */
final class DeviceClaimRequiredException extends \RuntimeException
{
    public function __construct()
    {
        parent::__construct('Device is claimed by a different user; consent required.');
    }
}
