Cleanup of cli
This commit is contained in:
15
api/common/Exception/Job/Stateless.php
Normal file
15
api/common/Exception/Job/Stateless.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace ProVM\Common\Exception\Job;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class Stateless extends Exception
|
||||
{
|
||||
public function __construct(int $job_id, ?Throwable $previous = null)
|
||||
{
|
||||
$message = "Job {$job_id} does not have any state";
|
||||
$code = 2002;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user