File size: 329 Bytes
45dc401
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

namespace App\Domain\Analytics;

use App\Shared\Exceptions\ApiException;

class InvalidTransitionException extends ApiException
{
    public function __construct(string $from, string $to)
    {
        parent::__construct('ANALYTICS_INVALID_TRANSITION', "{$from} -> {$to} is not an allowed transition.", [], 422);
    }
}