* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\Module\Mbo\Module\Workflow\Exception; use PrestaShop\Module\Mbo\Module\TransitionModule; class NotAllowedTransitionException extends \LogicException { public function __construct(TransitionModule $module, string $originStatus, string $targetStatus) { parent::__construct( sprintf( 'Transition from "%s" to "%s" is not possible for module "%s".', $originStatus, $targetStatus, $module->getName() ) ); } }