<?php
namespace App\Domain\Transfers\Exceptions;
use App\Enums\TransferStatus;
class IllegalTransition extends DomainException { public function __construct(TransferStatus $from,TransferStatus $to){parent::__construct('ILLEGAL_TRANSITION',"Transfer cannot move from {$from->value} to {$to->value}.",409);} }
